How to set the startup file in an HTML project?

Asked

Viewed 915 times

-1

Whenever I create an HTML project in Netbeans IDE it creates a file index.html and even then normal, the problem is even when I want to create a new HTML file within this project. I create the new file and when I go to debug or run it does not open that created file only the index.html. How do I open this new file and not the index.html?

  • Can you explain better what happens? I don’t understand...

2 answers

1

In Netbeans IDE 8. In the project tab where your project is listed, choose the project in question. Then:

  1. With the mouse pointer on top of the project press the right mouse button
  2. From the menu that appears to choose properties
  3. Opens a project property manager
  4. Choose the option "Run"
  5. In the input box change the "Start File" to the file you want to run each time you run the project.

NOTE: Netbeans by default defines index.html as the starting point of any HTML5 project. From experience it is good to maintain some defaults and this is one of them, but if you want to change and specifically for a project only here you have the answer.

0

When you create any web project in Netbeans automatically set a file to be the initializer in HTML5 projects index.html will be that file.

You can define how the project will run by changing the project properties. To do this, right-click on the HTML project and select estates:

propriedades do projeto

On the tab "execute" it is possible to set the startup file (which by default is the index.html) in addition to other execution settings:

propriedades de execução

Browser other questions tagged

You are not signed in. Login or sign up in order to post.