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 数组作为返回值注意

    static char* Test() { char buf[] ="aa"; printf("%s\n",buf); return buf; } int ma ...

  2. .NET DataTable DataSet转json代码

    /// <summary> /// dataTable转换成Json格式 /// </summary> /// <param name="dt"> ...

  3. Java打包多文件成zip

    package com.zh.java.util; import lombok.extern.slf4j.Slf4j; import java.io.File;import java.io.FileI ...

  4. Harbor安装 -- 企业级Registry仓库

    (一)Harbor安装 -- 企业级Registry仓库 以下文章转自http://www.jianshu.com/p/2ebadd9a323d 根据Harbor官方描述: Harbor是一个用于存储 ...

  5. AngularJS(五)——filter(过滤器)

    前言 过滤器可以用一个管道字符(|)添加到表达式和指令中.比如做ITOO的时候或者其他项目的时候,总是想统一货币日期等显示,以前的做法,不断循环该控件或该标签,然后循环转换.如果利用AngularJS ...

  6. bzoj 3131 [Sdoi2013]淘金(数位dp)

    题目描述 小Z在玩一个叫做<淘金者>的游戏.游戏的世界是一个二维坐标.X轴.Y轴坐标范围均为1..N.初始的时候,所有的整数坐标点上均有一块金子,共N*N块. 一阵风吹过,金子的位置发生了 ...

  7. 数据结构8: 双向链表(双向循环链表)的建立及C语言实现

    之前接触到的链表都只有一个指针,指向直接后继,整个链表只能单方向从表头访问到表尾,这种结构的链表统称为 “单向链表”或“单链表”. 如果算法中需要频繁地找某结点的前趋结点,单链表的解决方式是遍历整个链 ...

  8. CF959E Mahmoud and Ehab and the xor-MST 思维

    Ehab is interested in the bitwise-xor operation and the special graphs. Mahmoud gave him a problem t ...

  9. linux查找包含某个字符的文件并导出文件名

    find ./ -name "*" | xargs grep -l "字符串"  > 1.txt

  10. Django forum

    Django是比较有名的Python Web框架,很多著名的网站如Instagram就是用的Django.V2EX是一个界面简洁,功能丰富的论坛,最新源码尚未开源.网络上有很多模仿V2EX外观使用其它 ...