diff --git a/IntelliJ-IDE.md b/IntelliJ-IDE.md new file mode 100644 index 0000000..6a80322 --- /dev/null +++ b/IntelliJ-IDE.md @@ -0,0 +1,27 @@ +# IntelliJ Setup Tutorial + +> In this tutorial, I use CLion. But I think it will also works in WebStorm or IntelliJ which supports Makefile. + +1. Follow [nodejs/node/BUILDING.md](https://github.com/nodejs/node/blob/main/BUILDING.md) to setup environment and build a project before we start CLion. + + for example: + + ```shell + git clone https://github.com/nodejs/node.git node + cd node + ./configure --debug + make -j8 + ``` + + make sure you have ran compilation successfully before next step. + +2. Open CLion. +3. In popup, click 'OK' +4. Open 'Settings/Build, Execution, Development/Makefile' + 1. Change 'Commands' in 'Pre-configuration...' to './configure --debug' + 2. Use your own build options, like '-j32' or '-j4' depends your device. +5. Waiting for 'Updating indexes' done + +## References + + diff --git a/README.md b/README.md index 0297e65..f27090e 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,4 @@ Here are some IDE specific configs you can use while developing on [Node.js core](https://github.com/nodejs/node) - Visual Studio Code, see [./vscode.md](./vscode.md) +- IntelliJ IDEs, see [IntelliJ-IDE.md](./IntelliJ-IDE.md) \ No newline at end of file