VScode安装配置python,c/c++
·
记录一下
一定在官网下载,但我的浏览器进官网怎么这么慢呢?






配置中文

点

重新启动
接下来下载python插件和c/c++插件





特慢特慢特慢,建议找好心up给现成的你给人家一键三联呗
要不就镜像,其实镜像也不快,当然会魔法就…

俺是windows俺选的这个

安插件喽



解压


设置python和c/c++文件夹


用jupyter编辑器建立一个.ipynb的文件,自动找解释器,python可以了

运行的时候,要安装个包,安。
然后c/c++,这个比较麻烦,弄一天,nnd

自己建的.vscode,然后自己配置的
c_cpp_properties.json
{
"configurations": [
{
"name": "c++",
"includePath": ["${workspaceFolder}/**"],
"defines": ["_DEBUG", "_UNICODE", "_UNICODE"],
"windowsSdkVersion": "10.0.18362.0",
"compilerPath": "D:/mingw64/bin/g++.exe",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "windows-gcc-x64"
},
{
"name": "c",
"includePath": ["${workspaceFolder}/**"],
"defines": ["_DEBUG", "_UNICODE", "_UNICODE"],
"windowsSdkVersion": "10.0.18362.0",
"compilerPath": "D:/mingw64/bin/gcc.exe",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "windows-gcc-x64"
}
],
"version": 4
}
launch.json
{
"version":"0.2.0",
"configurations":[
{
"name":"c++ gdb",
"type":"cppdbg",
"request":"launch",
"program":"${fileDirname}\\${fileBasenameNoExtension}.exe",
"args":[],
"stopAtEntry": false,
"cwd":"${workspaceRoot}",
"environment":[],
"externalConsole": false,
"MIMode":"gdb",
"miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe",
"preLaunchTask":"g++",
"setupCommands":[
{
"description":"Enable pretty-printing for gdb",
"text":"-enable-pretty-printing",
"ignoreFailures": true
}
],
},
{
"name":"c gdb",
"type":"cppdbg",
"request":"launch",
"program":"${fileDirname}\\${fileBasenameNoExtension}.exe",
"args":[],
"stopAtEntry": false,
"cwd":"${workspaceRoot}",
"environment":[],
"externalConsole": false,
"MIMode":"gdb",
"miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe",
"preLaunchTask":"gcc",
"setupCommands":[
{
"description":"Enable pretty-printing for gdb",
"text":"-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
settings.json
{
"files. associations": {
"<dot>. py":"python",
"<dot>. iostream":"cpp",
"<dot>. tcc":"cpp",
"string":"cpp",
"unordered _ map":"cpp",
"vector":"cpp",
"ostream":"cpp",
"new":"cpp",
"typeinfo":"cpp",
"deque":"cpp",
"initializer _ list":"cpp",
"iosfwd":"cpp",
"fstream":"cpp",
"sstream":"cpp",
"map":"cpp",
"stdio. h":"c",
"algorithm":"cpp",
"atomic":"cpp",
"bit":"cpp",
"cctype":"cpp",
"clocale":"cpp",
"cmath":"cpp",
"compare":"cpp",
"concepts":"cpp",
"constexpr":"cpp",
"cstdint":"cpp",
"cstdio":"cpp",
"cstdlib":"cpp",
"cstring":"cpp",
"time":"cpp",
"wchar": "cpp",
"exception":"cpp",
"ios":"cpp",
"istream":"cpp",
"iterator":"cpp",
"limits":"cpp",
"memory":"cpp",
"random":"cpp",
"set":"cpp",
"stack":"cpp",
"stdexcept":"cpp",
"streambuf":"cpp",
"system _ error":"cpp",
"tuple":"cpp",
"type traits":"cpp",
"utility":"cpp",
"xfacet":"cpp",
"xiesbase":"cpp",
"xlocale":"cpp",
"xlocinfo":"cpp",
"xlocnum":"cpp",
"xmemory":"cpp",
"xstddef":"cpp",
"xstring":"cpp",
"xtriccommon":"cpp",
"xtree":"cpp",
"xutility":"cpp",
"stdlib.h":"c",
"string.h":"c"
},
"editor.suggest.snippetsPreventQuickSuggestions": false,
"aICoder.showTrayIcon": true
}
tasks.json
{
"version":"2.0.0",
"tasks":[
{
"label": "g++",
"command": "D:\\mingw64\\bin\\g++.exe",
"args": [
"-g",
"-fexec-charset=GBK",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error)\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"group": "build"
},
{
"label": "gcc",
"command": "D:\\ming64\\bin\\gcc.exe",
"args": [
"-g",
"-fexec-charset=GBK",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"problemMatcher": {
"owner": "c",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"group": "build"
},
{
"type": "cppbuild",
"label": "/C++: gcc.exe生成活动文件",
"command": "D:/mingw64/bin/gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"-fexec-charset=GBK",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "D:/mingw64/bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "test",
"isDefault": true
},
"detail": "调试器生成的任务."
}
]
}
遇到的问题,乱码,找DS给解决了。
更多推荐

所有评论(0)