Mac上XCode太占空间,卸载然后安装VSCode和Clang。在VSCode中再安装extension C/C++和Code Runner,配置Tasks: Configure Task,就可以开始Run C++ program了。
Visual Studio Code - Code Editing. Redefined
- https://code.visualstudio.com/
- https://code.visualstudio.com/docs/languages/cpp
- https://code.visualstudio.com/docs/cpp/config-clang-mac
- https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
- keyboard-shortcuts-windows.pdf
Clang - Wikipedia
- https://en.wikipedia.org/wiki/Clang
- Clang/ˈklæŋ/[5] is a compiler front end for the C, C++, Objective-C and Objective-C++ programming languages, as well as the OpenMP,[6] OpenCL, RenderScript and CUDAframeworks. It uses the LLVM compiler infrastructure as its back end and has been part of the LLVM release cycle since LLVM 2.6.
- It is designed to act as a drop-in replacement for the GNU Compiler Collection (GCC), supporting most of its compilation flags and unofficial language extensions.[7][8] Its contributors include Apple, Microsoft, Google, ARM, Sony, Intel and Advanced Micro Devices (AMD). It is open-source software,[9] with source code released under the University of Illinois/NCSA License, a permissive free software licence.
- The Clang project includes the Clang front end, a static analyzer and several code analysis tools.[10]
Comparing Clang to other open source compilers
- https://clang.llvm.org/comparison.html
Clang C/C++ Download and Installation Instructions
Web 版 VS Code 来了!
Vscode 小白使用介绍
VS Code 必知必会的 20 个快捷键!
- https://mp.weixin.qq.com/s/t7TLBOcnOs0AkncCVsYr9Q
- https://medium.com/better-programming/20-vs-code-shortcuts-for-fast-coding-cheatsheet-10b0e72fd5d
在用VSCode? 看完这篇文章, 开发效率翻倍!
手把手教你配置VS Code 远程开发工具
使用VSCode进行远程炼丹
Debugging configurations for Python apps in Visual Studio Code
实时可视化Debug:VS Code 开源新工具,一键解析代码结构
不光要用Python,还要在VSCode里用
- https://mp.weixin.qq.com/s/KnMcDbP0_k6OBxR3NSOa5A
- https://blog.csdn.net/bigbennyguo/article/details/104704023
用 VSCode 写 python 的正确姿势
推荐一款Python编辑器,集Pycharm和Sublime优点于一身的王者
微软VS Code已原生支持Jupyter笔记本,再也不用打开网页调试运行了
VS Code上也能玩转Jupyter Notebook,这是一份完整教程
- https://mp.weixin.qq.com/s/cb7r0QL8MOQRngEyBt3F-w
- https://towardsdatascience.com/getting-started-with-jupyter-notebooks-in-visual-studio-code-5dcccb3f739b
- 简洁而聚焦的产品定位,贯穿始终
- UI 渲染与业务逻辑隔离,一致的用户体验
- LSP—— 基于文本的协议
- 集大成的 Remote Development
EXTENSIONS
VS Code 最强插件指南 - CSDN
- https://mp.weixin.qq.com/s/MshppwwRFmbFx3aR7FVpEQ
- https://www.freecodecamp.org/news/favorite-vs-code-extensions-2017-786ea235812f/
Node.js不容错过的 Visual Studio Code 十大扩展组件
来安装一个酷炫的 VS Code 主题
动图演示11个必备 VS Code 插件
VSCode 插件
10款VS Code插件神器
用 VS Code 写 Python的8个扩展
- https://mp.weixin.qq.com/s/lUvXuWYfaUVYbsp18ChWyg
- 1、Python extension for Visual Studio Code
- 2、Python Preview
- 3、Sort lines
- 4、Git Graph
- 5、Python Snippets
- 6、Better Comments
- 7、autoDocstring
- 8、Python Indent
VSCode 上也能画流程图了!
VS Code 变身小霸王游戏机!
- https://mp.weixin.qq.com/s/x21GcqOEDP6ARguxAJ6jRA
- https://github.com/gamedilong/anes-repository
- https://marketplace.visualstudio.com/items?itemName=gamedilong.anes
All Autocomplete
- https://marketplace.visualstudio.com/items?itemName=Atishay-Jain.All-Autocomplete
- Create autocomplete items from open files in VSCode.
Bracket Pair Colorizer
- https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer
- A customizable extension for colorizing matching brackets
Browser Preview
- https://marketplace.visualstudio.com/items?itemName=auchenberg.vscode-browser-preview
- A real browser preview inside your editor that you can debug.
GitLens — Git supercharged
- https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens
- Supercharge the Git capabilities built into Visual Studio Code — Visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more
Nord Wave
- https://marketplace.visualstudio.com/items?itemName=dnlytras.nord-wave
- Darker version of the awesome Nord theme
PostgreSQL
- https://marketplace.visualstudio.com/items?itemName=ms-ossdata.vscode-postgresql
- Develop Postgres everywhere
Python
- https://marketplace.visualstudio.com/items?itemName=ms-python.python
- Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, snippets, and more.
Python Indent
- https://marketplace.visualstudio.com/items?itemName=KevinRose.vsc-python-indent
- Correct python indentation.
Remote - SSH
- https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh
- Open any folder on a remote machine using SSH and take advantage of VS Code's full feature set.
LaTeX Workshop
- https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop
- Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
Material Theme
- https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme
- The most epic theme now for Visual Studio Code
Test Explorer UI
- https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-test-explorer
- Run your tests in the Sidebar of Visual Studio Code
How to change the launched folder ?
- Navigate to your project folder and type
code .
- The Visual Studio Code Command Line Options
- https://code.visualstudio.com/docs/editor/command-line#_launching-from-command-line
How to commit part of code changes ?
- Version Control in Visual Studio Code
- https://code.visualstudio.com/docs/editor/versioncontrol#_commit
- Git version control in Visual Studio Code
- https://code.visualstudio.com/docs/introvideos/versioncontrol
- visual studio code - How can I commit some changes to a file, but not others, in VSCode? - Stack Overflow
- https://stackoverflow.com/questions/34730585/how-can-i-commit-some-changes-to-a-file-but-not-others-in-vscode
- Click '...' then
Stage Selected Ranges
How to fix remote connection error: The process tried to write to a nonexistent pipe ?
- Remote Explorer - SSH TARGETS - Configure - Settings - Specify the absolute file path, e.g. C:Usershao.sshconfig.
- ssh - VScode remote connection error: The process tried to write to a nonexistent pipe - Stack Overflow
How to fix "/.ssh/id_rsa is too open. It is required to be not accessible by others. The private key is ignored" ?
- /.ssh/id_rsa - Properties - Security - Advance - Disable inheritance - remove other users and just keep your user
How to set PYTHONPATH for src code ?
- Add env in /.vscode/launch.json
- "configurations": [
- {
- "env": {
- "PYTHONPATH": "/a:/b"
- }
- "env": {
- }
- Add PYTHONPATH in /.vscode/settings.json
- "terminal.integrated.env.linux": {
- "PYTHONPATH": "/a:/b"
- }
- "terminal.integrated.env.linux": {
- Using Python Environments in Visual Studio Code
- Setting Python source folders in Visual Studio Code - Binx
- Visual Studio Code - How to add multiple paths to python path? - Stack Overflow
- visual studio code - How to use PYTHONPATH with VSCode Python Extension for Debugging? - Stack Overflow
How to set vertical rulers for column ?
- vscode settings - Vertical rulers in Visual Studio Code - Stack Overflow (stackoverflow.com)
- https://stackoverflow.com/questions/29968499/vertical-rulers-in-visual-studio-code
- To configure it, go to menu File → Preferences → Settings and add this to to your user or workspace settings:
"editor.rulers": [80,120]
Why configuration setting could be found in run mode but couldn't be found in debug mode ?
- Need to set workspaceFolder properly. Add workspace folder -> Open the project folder.
- Visual Studio Code Variables Reference
- https://code.visualstudio.com/docs/editor/variables-reference
- Visual Studio Code User and Workspace Settings
- https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations
- debugging - How do I set my workspace folder in Visual Studio Code? - Stack Overflow
- https://stackoverflow.com/questions/56175608/how-do-i-set-my-workspace-folder-in-visual-studio-code