Column introduction
Overview of Configuration Items
CLion has a lot of configuration items, this article will list some commonly used configuration items.
1. Appearance configuration
1. Theme
2. New UI
The new UI is a bit VScode-like, and I don’t like it personally. The old UI is still fragrant, so it’s not enabled:
3. Environment variables
In addition to importing system/user environment variables, the IDE can also define some project-specific environment variables, which will be very useful in later project development.
2. Shortcut key mapping
CLion has built-in some shortcut keys of commonly used software, which can be directly mapped to the past, depending on personal preference.
I personally like the way of QtCreator here, so I choose this mapping method.
1. Code Jump
2. Search/Replace/Undo/Redo
Most here fit my needs, only Replace is manually set to Ctrl+H
.
3. Editor configuration
1. General arrangement
2. Font settings
3. Editor color theme
This setting gives great freedom to configure the color/theme of a certain part of a certain type of file.
4. Code style
This setting also gives users great freedom. They can even individually configure the tabs or indents used by a certain part, according to their own personal code style.
5. Code/File Templates
6. File encoding
7. Code CopyRight information template
4. Plug-ins
The plug-ins of Jetbrains are very rich, and the fourth article will specifically talk about some useful plug-ins.
5. Version Control
The IDE is suitable for some visual content, such as viewing code differences, and the command line is recommended for git operations.
6. Compile, Execute, Deploy
CLion as a whole uses Cmake for static code analysis and automatic jumps, but CLion allows users to set their own compilation toolchain, which will be specifically mentioned in the next article.
7. Language/Framework
Used to specify some special frameworks used in the project.
Eight, tool configuration
CLion has built-in very rich small tools, such as the ssh terminal tool, and the configuration items of these tools are unified here.
Nine, setting synchronization
If you have a JetBrains account, you can sync the settings to the cloud.
10. Advanced Settings
I don't usually use it.