I just downloaded Netbeans because I read another question saying it\'s a good IDE to develop Javascript with. I tried making a new project, but there is no option to set it to
click new file > [Categories] others > Javascript file
Update:
NetBeans 7.4 Released in October 2013, builds on the functionality listed below. As well as direct download of most major JS source files from CDNJS. Version 7.4 includes "Editing support for AngularJS, Knockout and ExtJS frameworks, Navigator and code folding in JSON files, Enhanced code completion with improved accuracy" see more here: https://netbeans.org/community/releases/74/
To set up a new JS project: under the File Menu choose -> New Project.
Step 1: Select HTML5 in categories and HTML5 Application in Projects
Step 2: Name your application.
Step 3: Choose a site template.
Step 4: Search for available libraries, click on the Version number to download previous versions.
Finish and you are done.
NetBeans 7.3 (scheduled for release in February 2013) introduces a new project type optimized for developing client web applications. This new project type can be found in New Project wizard in "HTML/JavaScript" category. HTML project supports is enabled by default for PHP and Java bundles of NetBeans, for other ones it need to be downloaded as a plugin.
see: http://wiki.netbeans.org/NetBeans_73_NewAndNoteworthy#Project_Creation
Original answer:
File> New Project> PHP > PHP Web Application
.. Sounds like crap, but works fine.
Because NetBeans doesn't have Javascript or HTML projects yet (in 7.0.1).
Check out this brand new plugin (I have not yet tested it)
NBWebProjectType - Generic projecttype for websites in NetBeans
[Note: this is for Netbeans 7.3+]
In NetBeans, a PHP project is a pretty general web application that can contain JavaScript, HTML, PHP, CSS, XML, and all the different web & server technologies (except Java) the Netbeans supports. So you can use a PHP aapplication as a general web project. This option is better than an HTML5 project because it includes server-side processing in the form of PHP files. Also, if you are developing in JavaScript, you will probably be using Ajax at some point, and PHP is a good language for the server side of Ajax, as well as server-side processing in general.
Create a PHP Project.
File
menu.New Project
.PHP
in Categories.PHP Application
.Next
If you do not have the PHP
Option in the New Project Dialog, then you did not install the PHP NetBeans plugin.
Installing the PHP Plugin:
Tools
menu.Plugins
option. (It is second from the bottom)Available Plugins
Tab.PHP
.PHP
Plugin..Install
. (Lower-left corner)Next
on the dialog that comes up.I accept
checkbox.Install
button.restart IDE
, Exit Netbeans, and then Open it again. It may take longer than usual because it is installing the new Features.
To make JavaScript Files:
File
menu.New File
.[Select the relevant category]
A. (Netbeans 8.x) click HTML5
in Category
.
B. (Netbeans 7.x) click Other
in Category
.
JavaScript File
.the NetBeans PHP version should have those project templates.
... while one can still add further language support via plugins.
teamed up with Chrome/Chromium (NetBeans Connector) it's optimal for web development.
do this: