当前位置: 首页> 财经> 创投人物 > VSCode 使用总结

VSCode 使用总结

时间:2025/7/10 9:41:39来源:https://blog.csdn.net/song240948380/article/details/123944027 浏览次数:0次

VSCode 使用总结

  • 一:c/c++ 代码格式化
  • 二:忽略文件
  • 三:VSCode ssh remote linux file
  • 四:vscode 大纲预览找不到文件符号
  • 五:vscode 实用插件
  • 六:预定义变量列表
  • 七:VSCode快捷键

一:c/c++ 代码格式化

shift+alt+F

在这里插入图片描述

二:忽略文件

在这里插入图片描述

三:VSCode ssh remote linux file

链接: VSCode ssh remote linux file

四:vscode 大纲预览找不到文件符号

问题:
vscode 大纲 文档中找不到符号

原因:
缺少c/c++必要插件

解决办法:
安装插件:
名称: C/C++
ID: ms-vscode.cpptools
说明: C/C++ IntelliSense, debugging, and code browsing.
版本: 1.8.4
发布者: Microsoft
VS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

    名称: C/C++ Extension PackID: ms-vscode.cpptools-extension-pack说明: Popular extensions for C++ development in Visual Studio Code.版本: 1.1.0发布者: MicrosoftVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-extension-pack名称: C++ IntellisenseID: austin.code-gnu-global说明: C/C++ Intellisense with the help of GNU Global tags版本: 0.2.2发布者: austinVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=austin.code-gnu-global名称: CMakeID: twxs.cmake说明: CMake langage support for Visual Studio Code版本: 0.0.17发布者: twxsVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=twxs.cmake名称: CMake ToolsID: ms-vscode.cmake-tools说明: Extended CMake support in Visual Studio Code版本: 1.9.2发布者: MicrosoftVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools名称: Doxygen Documentation GeneratorID: cschlosser.doxdocgen说明: Let me generate Doxygen documentation from your source code for you.版本: 1.4.0发布者: Christoph SchlosserVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=cschlosser.doxdocgen名称: GitLens — Git superchargedID: 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版本: 11.7.0发布者: GitKrakenVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens名称: markdownlintID: DavidAnson.vscode-markdownlint说明: Markdown linting and style checking for Visual Studio Code版本: 0.46.0发布者: David AnsonVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint名称: Better C++ SyntaxID: jeff-hykin.better-cpp-syntax说明: The bleeding edge of the C++ syntax版本: 1.15.13发布者: Jeff HykinVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=jeff-hykin.better-cpp-syntax名称: Bracket Pair ColorizerID: CoenraadS.bracket-pair-colorizer说明: A customizable extension for colorizing matching brackets版本: 1.0.62发布者: CoenraadSVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer名称: C/C++ ThemesID: ms-vscode.cpptools-themes说明: UI Themes for C/C++ extension.版本: 1.0.0发布者: MicrosoftVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-themes名称: GitHub Plus ThemeID: thenikso.github-plus-theme说明: A GitHub inspired color theme for VSCode code and interface!版本: 1.4.2发布者: theniksoVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=thenikso.github-plus-theme名称: GitHub ThemeID: GitHub.github-vscode-theme说明: GitHub theme for VS Code版本: 6.0.0发布者: GitHubVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme名称: Material Icon ThemeID: PKief.material-icon-theme说明: Material Design Icons for Visual Studio Code版本: 4.13.0发布者: Philipp KiefVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme名称: One Dark ProID: zhuangtongfa.material-theme说明: Atom‘s iconic One Dark theme for Visual Studio Code版本: 3.13.20发布者: binaryifyVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme名称: Remote - ContainersID: ms-vscode-remote.remote-containers说明: Open any folder or repository inside a Docker container and take advantage of Visual Studio Code's full feature set.版本: 0.217.4发布者: MicrosoftVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers名称: Remote - SSHID: ms-vscode-remote.remote-ssh说明: Open any folder on a remote machine using SSH and take advantage of VS Code's full feature set.版本: 0.74.0发布者: MicrosoftVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh名称: Remote - SSH: Editing Configuration FilesID: ms-vscode-remote.remote-ssh-edit说明: Edit SSH configuration files版本: 0.74.0发布者: MicrosoftVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh-edit名称: Remote - WSLID: ms-vscode-remote.remote-wsl说明: Open any folder in the Windows Subsystem for Linux (WSL) and take advantage of Visual Studio Code's full feature set.版本: 0.64.2发布者: MicrosoftVS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl

五:vscode 实用插件

在这里插入图片描述

六:预定义变量列表

	链接: [官方说明](https://i-blog.csdnimg.cn/direct/db775a2d420f44918ee12940a1697530.png)${workspaceFolder} -在 VS Code 中打开的文件夹的路径${workspaceFolderBasename} -在 VS Code 中打开的文件夹名称,不带任何斜杠(/)${file} -当前打开的文件${relativeFile} -当前相对于打开的文件 workspaceFolder${relativeFileDirname} -当前打开文件的目录名,相对于 workspaceFolder${fileBasename} -当前打开的文件的基本名称${fileBasenameNoExtension} -当前打开的文件的基本名称,没有文件扩展名${fileDirname} -当前打开的文件的目录名${fileExtname} -当前打开的文件的扩展名${cwd} -启动时任务运行器的当前工作目录${lineNumber} -活动文件中当前选择的行号${selectedText} -活动文件中的当前选定文本${execPath} -正在运行的 VS Code 可执行文件的路径${defaultBuildTask} -默认构建任务的名称

七:VSCode快捷键

  1. 打开关闭资源管理器
    Ctrl+B

  2. 格式化代码
    shift+ALT+F

  3. 打开终端
    ctrl+j

  4. 显示所有函数列表
    Shift+Ctl+O

  5. 显示打开文件
    ctl+p
    链接: 快捷键说明

关键字:VSCode 使用总结

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: