当前位置: 首页 > news >正文

VSCode 使用总结

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
    链接: 快捷键说明

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • HTTP状态码_五类
  • ComsolMatlab 螺旋孔多孔超材料高温吸声性能研究
  • 【微服务】Spring Cloud中如何使用Eureka
  • 在Visual Studio/Qt Creator 中使用CMake安装和使用vcpkg包
  • 全新在线客服系统源码(pc+h5+uniapp+公众号小程序+抖音)附搭建接入教程
  • 基于RK3568 Android11 移除长按电源按键弹窗的对话框中的 [关机] 和 [紧急呼救] 选项(详细分析)
  • Jenkins 部署Vue项目指引: Vue项目本地跨域代理 、解决ERR_UNSAFE_PORT
  • 轨迹优化 | 基于ESDF的共轭梯度优化算法(附ROS C++/Python仿真)
  • 驾驭企业数字化转型的利器:《TOGAF®标准第10版》
  • qt自定义控件遇到的找不到头文件的问题
  • CentOS的根目录下,/bin 和 /sbin 用途和权限
  • Go语言fmt包中print相关方法
  • Android实时通信:WebSocket与WebRTC的应用与优化
  • 智能合约中重放攻击
  • 【SpringMVC】详细了解SpringMVC中WEB-INF 目录资源,视图解析器和静态资源放行的使用。
  • [js高手之路]搞清楚面向对象,必须要理解对象在创建过程中的内存表示
  • 【css3】浏览器内核及其兼容性
  • 〔开发系列〕一次关于小程序开发的深度总结
  • Mac转Windows的拯救指南
  • Promise面试题,控制异步流程
  • PyCharm搭建GO开发环境(GO语言学习第1课)
  • Quartz初级教程
  • Yeoman_Bower_Grunt
  • 更好理解的面向对象的Javascript 1 —— 动态类型和多态
  • 悄悄地说一个bug
  • 听说你叫Java(二)–Servlet请求
  • 详解NodeJs流之一
  • 新手搭建网站的主要流程
  • 一些基于React、Vue、Node.js、MongoDB技术栈的实践项目
  • 基于django的视频点播网站开发-step3-注册登录功能 ...
  • !$boo在php中什么意思,php前戏
  • #常见电池型号介绍 常见电池尺寸是多少【详解】
  • #图像处理
  • (1/2)敏捷实践指南 Agile Practice Guide ([美] Project Management institute 著)
  • (Note)C++中的继承方式
  • (六)c52学习之旅-独立按键
  • (四)TensorRT | 基于 GPU 端的 Python 推理
  • (算法)求1到1亿间的质数或素数
  • (转)Google的Objective-C编码规范
  • (转)h264中avc和flv数据的解析
  • (转)PlayerPrefs在Windows下存到哪里去了?
  • (转载)Google Chrome调试JS
  • ***通过什么方式***网吧
  • .net dataexcel 脚本公式 函数源码
  • .NET 常见的偏门问题
  • .NET/C# 利用 Walterlv.WeakEvents 高性能地定义和使用弱事件
  • .NET的数据绑定
  • .NET简谈互操作(五:基础知识之Dynamic平台调用)
  • @data注解_SpringBoot 使用WebSocket打造在线聊天室(基于注解)
  • @KafkaListener注解详解(一)| 常用参数详解
  • [2016.7 test.5] T1
  • [Bug]使用gradio创建应用提示AttributeError: module ‘gradio‘ has no attribute ‘inputs‘
  • [C#]winform基于深度学习算法MVANet部署高精度二分类图像分割onnx模型高精度图像二值化
  • [Docker]当下实测可用Docker镜像源
  • [ffmpeg] av_opt_set 解析