【乱搞】VScode配置
今天欢快地水过了一天,现在室友是谁都还不知道,无聊地记录一下linux下VSCODE的配置
//update:从orange大佬那里看到了更好的配置owo
Lauch.json配置
{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension}", "preLaunchTask": "compile", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": true, "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] }调用tasks runnig 选择others,之后修改
{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "compile", "type": "shell", "command": "g++", "args": [ "${fileDirname}/${fileBasename}", "-o", "${fileDirname}/${fileBasenameNoExtension}", "-g", "-DLOCAL", // "-O2" ], "group": { "kind": "build", "isDefault": true } } ] }好了!欢快搞码吧!