c/c++开发时的一些实用VsCode插件
本文最后更新于 2025年4月22日 下午
要求:为了提高使用vscode开发的效率,推荐几款实用插件。
C/C++
Description: C/C++ IntelliSense, debugging, and code browsing.
这是一款C/C++开发的基本插件
C/C++ Extension Pack
Description: Popular extensions for C++ development in Visual Studio Code.
这是一款C/C++开发的扩展插件
C/C++ Themes
Description: UI Themes for C/C++ extension.
这是一款C/C++开发的主题插件
C/C++ MATH Formula Viewer
Description: hovers math formula of c mathematical library functions
这是一款C/C++开发的数学公式预览插件,鼠标放在对应代码,可以查看数学公式的表达式
Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code
Description: Language pack extension for Chinese (Simplified)
这是一款简体中文语言插件,可以让vscode的菜单选项显示中文
clangd
Description: C/C++ completion, navigation, and insights
这是一款C/C++插件,支持自动补全代码,显示编译错误和警告,悬停提示函数或变量定义,跳转到代码定义、代码格式化等丰富功能
Code Runner
Description: Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C, Rust, Racket, Scheme, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim,
这是一款代码运行插件
Align Spaces
Description: Align operators without modifying the code
这是一款代码操作符对齐插件,可以在不修改代码的情况下对齐操作符,在视觉效果上看着代码更舒服
Trailing Spaces
Description: Highlight trailing spaces and delete them in a flash!
这是一款末尾空格检测插件,突出显示拖尾空格,并在flash中删除它们!
通过绑定快捷键的方式,可以通过按下快捷键一键删除当前文件的所有末尾空格
要添加键绑定,请打开: File / Preferences / Keyboard Shortcuts 并s搜索trailing-spaces.deleteTrailingSpaces:
1 |
|
VS Code Counter
Description: Count lines of code in many programming languages.
这是一款代码量统计插件,可以计算项目中的代码行数
Better Comments
Description: Improve your code commenting by annotating with alert, informational, TODOs, and more!
这是一款代码注释插件,通过使用!、?、//、todo等注释来丰富代码注释!
CodeSnap
Description: 📷 Take beautiful screenshots of your code
这是一款代码截图插件
Comment Translate
Description: This plugin uses the Google Translate API to translate comments for the VSCode programming language.
这是一款翻译插件
Error Lens
Description: Improve highlighting of errors, warnings and other language diagnostics.
这是一款代码错误提示插件
Git Graph
Description: View a Git Graph of your repository, and perform Git actions from the graph.
这是一款git历史版本可视化查看插件
Git Blame
Description: See git blame information in the status bar.
这是一款查看程序中每一行代码最后一次提交状态的插件
Indenticator
Description: Highlights your current indent depth
这是一款代码指示插件,突出显示当前缩进深度
vscode-icons
Description: Icons for Visual Studio Code
这是一款vscode图标插件,可以修改左侧文件显示的图标