Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 500 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 500 Bytes

auto-vscode

自动生成vscode配置文件,包括:

c_cpp_properties.json
launch.json
settings.json
tasks.json

将脚本移至/usr/local/bin

mv vscode.sh /usr/local/bin
sudo chmod +x /usr/local/bin/vscode.sh

创建别名:

vim ~/.bashrc

添加以下内容:

alias vscode="/usr/local/bin/vscode.sh"

生效:

source ~/.bashrc

使用方法:

vscode g++

然后就可以使用F5调试运行C++代码啦。