... | ... | @@ -2,11 +2,9 @@ |
|
|
|
|
|
# Setting Up QtCreator for ELT DevEnv
|
|
|
|
|
|
This is a setup to configure QtCreator installed on DevEnv, to use the [compile_commands.json](/CompilationDatabase/CompilationDatabase.md) build information.
|
|
|
This is a setup to configure QtCreator installed on DevEnv, to use the `compile_commands.json` file build information.
|
|
|
When finished, QtCreator will understand the project structure and the user will be able to have autocompletion and code navigation available.
|
|
|
|
|
|
*_Note: This is a work in progress, and I'm no way an expert on VSCode. Please share your findings to improve this documentation_*
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
Open QtCreator and o to `Help -> About Qt Plugins ...`. Activate:
|
... | ... | @@ -21,7 +19,7 @@ Restart QtCreator. |
|
|
|
|
|
# Open project with compile commands
|
|
|
|
|
|
- Create the `build/compile_commands.json` in your project, more information [here](/CompilationDatabase/CompilationDatabase.md).
|
|
|
- Create the `build/compile_commands.json` by calling `waf clangdb` (`waf configure` must have be done before)
|
|
|
- On QtCreator go to `File -> Open File or Project ...`
|
|
|
- Go to your project directory and open `compile_commands.json`file.
|
|
|
- A second window will open asking to select your project folder, normally you have to go back 2 directories from `./build`
|
... | ... | |