Matt Zukowski
Matt Zukowski

Reputation: 4541

Pure-JavaScript projects in NetBeans?

I do a lot of JavaScript coding, and I really like NetBeans. Unfortunately, I can't figure out how to create a "JavaScript" project in NetBeans. If I go to File -> New Project, my only options are "Java", "Ruby", and "NetBeans Modules". I don't want any of these. My project consists mostly of JavaScript, with a little bit of CSS.

I usually just end up creating a "Ruby" project, but this seems wrong, since I don't actually have any Ruby code. Why isn't there an option to create a "JavaScript" or "Web" project, or at least a "Generic" project that doesn't revolve around a specific language?

Am I missing something here?

Upvotes: 15

Views: 7004

Answers (4)

Tony Cronin
Tony Cronin

Reputation: 1661

NetBeans 7.4 Released in October 2013, allows this functionality. 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 1: select HTML5 in categories and HTML5 Application in Projects

Step 2: Name your application. Step 2: name your application

Step 3: Choose a site template. Step 3: choose a site template

Step 4: Search for available libraries, click on the Version number to download previous versions. Step 4: Search for available JS libraries in 'Available'

Finish and you are ready to go.

Upvotes: 1

Fredrick Pennachi
Fredrick Pennachi

Reputation: 842

Windows -> Favorites allows you to work out of arbitrary directories in NetBeans. You won't be able to "Run" your program or anything like that but you can edit files without having a Project.

Upvotes: 15

Sadly there's no option for a pure JavaScript project. Personally I use the PHP template as it seems adequate.

I suppose if you really want a proper project type, you have to implement it yourself.

Upvotes: 3

objects
objects

Reputation: 8677

Don't believe there is a Javascript project option. Netbeans just includes a Javascript editor.

Perhaps have a look at Eclipse and Aptana plugin.

Upvotes: 0

Related Questions