In the previous article, we briefly explained how to configure the Linux c++ environment in vs2017. After trying it out, we found that it was not very convenient to use. Then we thought of an IDE that we used before :NetBeans.
First of all, we can in the official download NetBeans, this is a free IDE: netbeans.apache.org/download/nb…
Once the download is complete, unzip the zip package to the desired directory:
In the bin directory, we can find both 32-bit and 64-bit executables.
My computer is 64-bit, so I send the shortcut to my desktop for convenience.
Then start NetBeans. There is no c++ module by default, so we need to install the c++ module.
Select Tool -> plugins:
I’ve already installed it, so the interface here is not the same as the original interface, there are a lot more things.
Check NetBeans 8.2 Plugin Portal as shown above, then switch to the Updates page:
Click Check for Updates and follow the prompts to install.
Once installed, we can create a new c++ project:
Our original intention is to develop Linux c++ programs, here to build the host refers to our Linux machine environment, my is a centos 7 virtual machine.
So let’s just hit the Finish button. NetBeans automatically creates a main. CPP file with the following project structure:
Select the Edit button and go to create a host:
The following step is to fill in the display name, can not ignore, use the default value is good:
When you’re done, select the remote host we just added from the Build host:
Click OK to complete the configuration.
Run the program if the following error occurs:
Click the Edit button:
If you haven’t entered your password, you’ll be asked to enter your password and then confirm.
Then set the build host for the project, right-click the project and select Set Build Host and select the remote host we added:
Run the program:
This step also compresses the local code and uploads it to a remote host, decompresses it, compiles it, and prints the result on the local console:
NetBeans c++ code prompt Settings:
.; - >; . *. - > *; : :; new ; q; w; e; r; t; y; u; i; o; p; l; k; j; h; g; f; d; s; a; z; x; c; v; b; n; m;Copy the code
This will show intelligence when typing, but if you make a mistake, it will look like intelligence will come back… At least it’s better than nothing. I’m working on it. No offense.
Well, that’s it. We’ll talk more about it later. I hope you can find a handy IDE.