集成开发环境IDE
IDE
Summary
Language (Mainly) | IDE | Comments | Developer | License | OS | Written in | Latest stable release |
---|---|---|---|---|---|---|---|
C++ | Visual Studio | Microsoft | Proprietary | Win/Linux | C++/C# | 16.10.1 | |
C++ | Visual Studio Code | open source | Microsoft | MIT | Win/Linux/macOS | JavaScript | 1.60.0 |
C++ | Code::Blocks | open source | - | GPL | Win/Linux/macOS | C++ | 20.03 |
Java | Eclipse | IBM | EPL | Win/Linux/macOS | C++/Java | 4.20.0 | |
Java | IntelliJ IDEA | JetBrains | Apache | Win/Linux/macOS | Java | 2021.1.2 | |
Java | NetBeans | Sun/Oracle | Apache | Win/Linux/macOS | Java | 12.4 | |
Python | PyCharm | 适合大工程 | JetBrains | Apache | Win/Linux/macOS | Java | 2021.1.1 |
Python | Spyder | 集成交互式环境 | Win/Linux/macOS | ||||
Python | Jupyter (IPython) | 仅交互式 | |||||
Python | IDLE | Python自带,提示符为 >>> |
VSCode
gcc: https://code.visualstudio.com/docs/cpp/config-mingw
tasks.json: https://code.visualstudio.com/docs/editor/tasks#vscode
launch.json: https://code.visualstudio.com/docs/cpp/launch-json-reference
variables: https://code.visualstudio.com/docs/editor/variables-reference
CodeBlocks
-
开源的C/C++ IDE
-
自动代码对齐
- Plugins -> Source Code Formatter (Astyle), 或者右键 Astyle
-
修改快捷键 Settings -> Editor -> Keybord shortcuts
(参考MATLAB)
添加注释:Ctrl-R
取消注释:Ctrl-T
自动对齐:Ctrl-I
下载地址
http://www.codeblocks.org/downloads/26
下载 codeblocks-17.12mingw-setup.exe (这个版本包含MinGW编译器套件)
设置编译器
Settings -> Compiler -> Toolchain executables -> Auto-detect。
(对当前project有效)
include path: project -> bulid options -> Search directories -> Compiler -> Add
libray path: project -> bulid options -> Linker setting -> Add
(对所有project有效)
Settings -> compiler -> Search directories -> compiler
Settings -> compiler -> Search directories -> Linker setting