VS Code插件

  • vscode-icons: 显示文件类型的图标
  • project manager: 管理项目, 项目的保存加载与切换
  • beautify: 控制缩进
  • code runner: 执行代码
  • debugger for chrome
  • eslint: 代码规范检测
  • include autocomplete: 头文件自动补全, json配置文件为c_cpp_properties.json, 在includePath添加需要的头文件路径即可
  • indent-rainbow: 显示缩进
  • Path Intellisense: 路径补全

内置

  • format document: 该命令控制全局缩进

快捷键

  • ctrl + tab: 选择历史文件
  • shift + cmd + p: 显示所有命令
  • cmd + n: 创建新文件到huffer中
  • cmd + s: 将buffer中的文件保存到指定目录下
  • 几乎所有的软件都支持的标签切换: shift + cmd + [ 以及 shift + cmd + ]
  • shift + cmd + V: 打开markdownd的预览
  • ctrl + shift + b: 编译, 根据task.json, 如果没有创建, 找模板
  • 编译运行 shift + cmd + b

{
"version": "2.0.0",
"tasks": [
{
"label": "compile", # 用于表示和引用task
"command": "g++", # 命令名
"args": ["${file}"] # 命令的参数, 有时使用的参数无效直接将该参数放到"command"中
},
{
"label": "run",
"args": ["build"],
"options": {
"cwd": "${workspaceRoot}/server"
}
},
{ # 同时启动两个task
"label": "Build",
"dependsOn": ["compile", "run"],
"group": [
"kind": "build",
"isDefault": true
]
}
]
} 还有group选项, 有test或者build两个值, 使用命令run build task或者run test task
  • python: select interpretor --> 选择python解释器

  • launch.json使用默认的就好, 单击左侧的debug图标, 点击齿轮自动生成模板, 回到python源码文件, F5进行debug

  • windows中想要debugC程序就做梦去吧

  • 建议在windows中下载TDM-GCC配置好gcc, g++和gdb, vscode下载code runner插件

  • 但是在*nix中debug和build都可以

VS Code Plugins And Configuration的更多相关文章

  1. 《Continuous Delivery》 Notes 2: Configuration Management

    What is Configuration Management? Configuration Management refers to the process by which all artifa ...

  2. Peer Code Reviews Made Easy with Eclipse Plug-In

    欢迎关注我的社交账号: 博客园地址: http://www.cnblogs.com/jiangxinnju/p/4781259.html GitHub地址: https://github.com/ji ...

  3. Building Plugins for iOS

    This page describes Native Code Plugins for the iOS platform. Building an Application with a Native ...

  4. Multi-Projector Based Display Code ---- ModelViewer

    Overview Model viewer is another application we provided for large display. It is designed for viewi ...

  5. Multi-Projector Based Display Code ---- ImageViewer

    Overview Image viewer is a typical application for large display. It makes use of the high-resolutio ...

  6. ubuntu下VS code如何调试C++代码

    最近开始使用Vs codel,真的方便,可以和git结合.下面总结一下如何调试程序, 我写了一个实例程序(不重要) #include <iostream> #include <fst ...

  7. maven 总结整理(二)——download source code

    当我们用maven下载jar包时,有时希望下载jar包的源代码,此时可以在pom.xml文件中,进行设置. <build>    <finalName>WebProject&l ...

  8. swagger demo code

    //Application 开启注解 @EnableSwagger2public class Application { public static void main(String[] args) ...

  9. Openstack Neutron L2 Population

    Why do we need it, whatever it is? VM unicast, multicast and broadcast traffic flow is detailed in m ...

随机推荐

  1. c# 捕获非托管异常

    在.NET 4.0之后,CLR将会区别出一些异常(都是SEH异常),将这些异常标识为破坏性异常(Corrupted State Exception).针对这些异常,CLR的catch块不会捕捉这些异常 ...

  2. 使用metasploit进行栈溢出攻击-1

    攻击是在bt5下面进行,目标程序是在ubuntu虚拟机上运行. 首先,需要搞明白什么是栈溢出攻击,详细内容请阅读 http://blog.csdn.net/cnctloveyu/article/det ...

  3. javascript 实现类似百度联想输入,自动补全功能

    js  实现类似百度联想输入,自动补全功能 方案一: search是搜索框id="search" //点击页面隐藏自动补全提示框 document.onclick = functi ...

  4. 机器学习基石笔记:11 Linear Models for Classification、LC vs LinReg vs LogReg、OVA、OVO

    原文地址:https://www.jianshu.com/p/6f86290e70f9 一.二元分类的线性模型 线性回归后的参数值常用于PLA/PA/Logistic Regression的参数初始化 ...

  5. 用户、组或角色 'zgb' 在当前数据库中已存在。 (Microsoft SQL Server,错误: 15023)

    在使用SQL Server 时,我们经常会遇到一个情况:需要把一台服务器上的数据库转移到另外一台服务器上.而转移完成后,需要给一个"登录"关联一个"用户"时,往 ...

  6. css边跨实例

    <!doctype html><html lang="zh-cn"> <head> <meta http-equiv="Cont ...

  7. 模仿 spring IOC Annotation版自动装配

    spring 有两大核心 IOC和AOP.  IOC (inversion of control) 译为 控制反转,也可以称为 依赖注入 ; AOP(Aspect Oriented Programmi ...

  8. 需要提升权限才能运行dism

    利用系统安装盘来安装.net3.5时,遇到的问题. [命令] dism.exe /online /enable-feature /featurename:NetFX3 /Source:F:\sourc ...

  9. day_08 文件操作

    常用模式解释 open表示打开一个文件 f 变量, 操控XXX.txt文件的句柄 r:只读 w:只写 a:追加写入 b:byte,这种模式下,encoding不能用utf-8字符集 1. 文件的基本操 ...

  10. Android viewpager + fragment取消预加载

    1,在fragment中重写setUserVisibleHint方法private boolean isVisibleToUser;@Overridepublic void setUserVisibl ...