Among the eclipse plug-in, the most well-known node.js plug-in is nodeclipse. This article introduces the nodeclipse installation tutorial for your reference. The specific content is as follows
Install nodeclipse
1. Click Tools → Plugin Installation → Browse eclipse plug-in market → Search node.js → Find nodeclipse in the search results as shown in the following figure
2. Click the install in the picture above to start loading. After loading, click Next to accept the license agreement and wait for the installation to be completed.
3. Restart HBuilder after installation
4. Create a new node project: click Menu File → New → Others as shown below
5. Select the new nodejs project type to create.
6. Prompt node.js in js file
Note: The editor of nodeclipse is different from the editor of HBuilder. However, node.js and web js both use .js as the extension. When opening a js file, you need to distinguish which js editor to use to open it.
Generally speaking, since nodeclipse is installed later, the .js file is opened as a node editor by default, and the HBuilder syntax assistant is not prompted in this editor.
To change the opening method, right-click the js file in the project manager - Open method and select the editor you want to open.
You can also set permanent file associations in the menu, and you can set the way you use most frequently to open them. It is recommended to set the .js file to be opened using HBuilder's js editor by default, and then right-click to select nodeclipse editor to open when opening the node.js js file.
Install JSDT
1. Click Tools → Plugin Installation → Manually install eclipse plug-in, and click "Available Software Sites" as shown in the following figure
2. Check indigo (Note: After checking, when HBuilder starts, check whether the installed plug-ins indigo have been upgraded, which will cause the software to start too slowly or be stuck for a long time after starting. So please remove this checkmark after installing jdt) as shown below
3. After clicking OK, click the drop-down arrow to select the site of indigo as shown in the figure below, and then wait for the loading (This process is a bit long, if you set the proxy, it will speed up the loading speed)
4. After loading, find the programming languages as shown below
5. Check the JavaScript Development Tools under programming languages as shown in the following figure
6. Click Next, accept the license agreement and install it, and restart after installation.
The above is all about this article, I hope it will be helpful to everyone's learning.
Archives of historical materials:
The method of installing the nodeclipse plug-in in HBuilder6.3 is as follows:
Preface, nodeclipse is based on jsdt, HBuilder does not have built-in jsdt. If you want to install nodeclipse, you must first install the jsdt plugin.