VS Code Plugins And Configuration
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的更多相关文章
- 《Continuous Delivery》 Notes 2: Configuration Management
What is Configuration Management? Configuration Management refers to the process by which all artifa ...
- Peer Code Reviews Made Easy with Eclipse Plug-In
欢迎关注我的社交账号: 博客园地址: http://www.cnblogs.com/jiangxinnju/p/4781259.html GitHub地址: https://github.com/ji ...
- Building Plugins for iOS
This page describes Native Code Plugins for the iOS platform. Building an Application with a Native ...
- Multi-Projector Based Display Code ---- ModelViewer
Overview Model viewer is another application we provided for large display. It is designed for viewi ...
- Multi-Projector Based Display Code ---- ImageViewer
Overview Image viewer is a typical application for large display. It makes use of the high-resolutio ...
- ubuntu下VS code如何调试C++代码
最近开始使用Vs codel,真的方便,可以和git结合.下面总结一下如何调试程序, 我写了一个实例程序(不重要) #include <iostream> #include <fst ...
- maven 总结整理(二)——download source code
当我们用maven下载jar包时,有时希望下载jar包的源代码,此时可以在pom.xml文件中,进行设置. <build> <finalName>WebProject&l ...
- swagger demo code
//Application 开启注解 @EnableSwagger2public class Application { public static void main(String[] args) ...
- Openstack Neutron L2 Population
Why do we need it, whatever it is? VM unicast, multicast and broadcast traffic flow is detailed in m ...
随机推荐
- 在FooterTemplate内显示DropDownList控件
如果想在Gridview控件FooterTemplate内显示DropDownList控件供用户添加数据时所应用.有两种方法可以实现,一种是在GridView控件的OnRowDataBound事件中写 ...
- 使用pip安装离线包
为了方便以后查看,特总结于此: 下载离线安装包并放到你想放的文件目录下 使用anaconda prompt安装离线文件 如果没有安装anaconda,则参照下边链接里边的操作!!! 离线环境通过pip ...
- Python3 中socket使用
1.动态导入模块 在当前目录下有lib和test目录,在test中要想使用lib中的aa的C类: test中: 第一种方法:推荐 importlib.import_module('lib.aa') o ...
- Binder学习笔记(十一)—— 智能指针
轻量级指针 Binder的学习历程爬到驱动的半山腰明显感觉越来越陡峭,停下业务层的学习,补补基础层知识吧,这首当其冲的就是智能指针了,智能指针的影子在Android源码中随处可见.打开framewor ...
- async/await 处理异步
async/ await来发送异步请求,从服务端获取数据,代码很简洁,同时async/await 已经被标准化. 先说一下async的用法,它作为一个关键字放到函数前面,用于表示函数是一个异步函数,因 ...
- Linux之sersync数据实时同步
sersync其实是利用inotify和rsync两种软件技术来实现数据实时同步功能的,inotify是用于监听sersync所在服务器上的文件变化,结合rsync软件来进行数据同步,将数据实时同步给 ...
- dedecms列表页面随机缩略图调用
如果要利用dedecms制作扁平化主题,大概也能够遇到相似的问题,那就是dedecms的缩略图机制,在没有缩略图的情况下显示单一的默认图片,如果是wordpress可以很方便的定义函数调用随机的缩略图 ...
- 11、OpenCV Python 图像金字塔
__author__ = "WSX" import cv2 as cv import numpy as np # 高斯金字塔 #金字塔 原理 ==> 高斯模糊+ 降采样 #金 ...
- ArrayList深度分析:ArrayList和数组间的相互转换
一.ArrayList转换为数组ArrayList提供public <T> T[] toArray(T[] a)方法返回一个按照正确的顺序包含此列表中所有元素的数组,返回数组的运行时类型就 ...
- php http 缓存(客户端缓存)
<?php /* * Expires:过期时间 * Cache-Control: 响应头信息 * (max-age:[秒]缓存过期时间(请求时间开始到过期时间的秒数), * s-maxage:[ ...