NetBeans Javascript?

后端 未结 8 1196
暗喜
暗喜 2021-02-13 10:49

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

相关标签:
8条回答
  • 2021-02-13 11:25

    click new file > [Categories] others > Javascript file

    0 讨论(0)
  • 2021-02-13 11:33

    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 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 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).

    0 讨论(0)
  • 2021-02-13 11:37

    Check out this brand new plugin (I have not yet tested it)

    NBWebProjectType - Generic projecttype for websites in NetBeans

    0 讨论(0)
  • 2021-02-13 11:41

    [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.

    Instructions

    Create a PHP Project.

    1. Go to the File menu.
    2. Click New Project.
    3. Select PHP in Categories.
    4. Select PHP Application.
    5. Click Next
    6. Fill out the details.(Name, location, server, etc. This part is pretty self explanatory.) (Note: if you need help, click the Help button in the lower right corner)

    If you do not have the PHPOption in the New Project Dialog, then you did not install the PHP NetBeans plugin.

    Installing the PHP Plugin:

    1. Go to the Tools menu.
    2. Click on the Plugins option. (It is second from the bottom)
    3. Click on the Available Plugins Tab.
    4. Search PHP.
    5. Check the checkbox next to the PHP Plugin..
    6. Click Install. (Lower-left corner)
    7. Click Next on the dialog that comes up.
    8. Click the I accept checkbox.
    9. Click the Install button.
    10. If a little window pops up in the lower right corner that says 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:

    1. Go to the File menu.
    2. Click New File.
    3. [Select the relevant category]

      A. (Netbeans 8.x) click HTML5 in Category.
      B. (Netbeans 7.x) click Other in Category.

    4. Select JavaScript File.
    5. Fill out the details. (Name, location,etc.)
    0 讨论(0)
  • 2021-02-13 11:41

    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.

    0 讨论(0)
  • 2021-02-13 11:43

    do this:

    • Choose File --> New Project to open the New Project wizard.
    • Select HTML5/JS Application in the HTML/JavaScript category. and then continue with the ush.
    0 讨论(0)
提交回复
热议问题