当前位置:网站首页>Simple configuration of vscade
Simple configuration of vscade
2022-06-11 07:30:00 【Master. Yi】
Come first Official website https://code.visualstudio.com/ next Vscode
then Find a place https://www.jianshu.com/p/ee1ccb0a3062 next Mingw( If there is anything else IDE You don't have to )
I'm off Mingw After the bin Add to environment variables Path Inside .( This computer -> ( Right click ) attribute -> Advanced system setup -> environment variable -> Path -> Add a path )
Then you need some plug-ins :
Chinese(simplified)
Into Chinese
C/C++
Code Runner
Remember to tick this :
And this one. ?
Python
use python First come Official website https://www.python.org/ Download a .( It can be installed in cmd Use it , Super cool )
And then in Vscode Put it in Python plug-in unit .
background
Set the background , Open in extension settings.json, Add these words :
Turn off its default image :
"background.useDefault": false,
Set your own picture :
"background.customImages": [" File path "],
Note the format of the file path , It's best to open the picture with a browser and copy the address in the URL bar ( This is without Chinese )
Then add some picture positions 、 size 、 Transparency settings :
"background.style": {
"background-position": "center",
"background-size":"cover",// Picture size
"opacity": 0.2, // transparency
},
The basic configuration is completed , You can write the program happily .
How to debug ?
Select the open folder in the file ,
After writing a document , Press F5,Vscode Will automatically write launch.json and tasks.json
Then there is the interface :
After setting the breakpoint , Click on the green triangle or press F5 Ready for debugging .
Ctrl+F5 Is to run In doing so, there is no need to CodeRunner 了
Terminals and independent windows
stay launch.json Lieutenant general "externalConsole": false, Change it to true, You can debug and run in a separate window .
Independent window operation flashback problem
You can change the settings to solve , stay launch.json Medium configuration Add an instruction to the :
{
"name": "Only Run",
"type": "cppdbg",
"request": "launch",
"program": "C:\\WINDOWS\\system32\\cmd.exe",
"args": [
"/C",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"&",
"pause"
],
"cwd": "${fileDirname}",
"externalConsole": true,
}
This is to run with the help of terminals , At the same time, a separate window pops up ,args After running the program “pause” once .
Note that the added location is equivalent to the original one ( in other words configuration Now there are two big pieces in the ), Will notice 
There are two options : One is the original ; One is new , For operation , Be careful not to compile , Therefore, you may need to use CodeRunner perhaps GDB Compile the ( If you can directly use the configuration solution, please leave a message ~).
That's almost enough , Oh , If you want to write Markdown You can add one Markdown plug-in unit .
边栏推荐
- 一、SQLServer2008安裝(帶密碼)、創建數據庫、C#窗體項目測試
- Sdl-2 thread logic
- R语言并行计算实战教程
- 【AtCoder2376】Black and White Tree(博弈)
- QObject usage skills -- control function class
- 学 SQL 必须了解的10个高级概念
- RTMP protocol
- Adventure of small X
- [Oracle database] mammy tutorial day02 use of database management tool sqlplus
- Interview question 02.06 Palindrome linked list
猜你喜欢
![[Oracle database] mammy tutorial day03 Sorting Query](/img/ea/24c9495a2ef4f1786f7b7852bde321.png)
[Oracle database] mammy tutorial day03 Sorting Query

JVM学习记录(七)——类加载过程与双亲委派模型

big.js--使用/实例
![[STL source code analysis] summary notes (10): hashtable exploration](/img/31/a77ac380dbd0f85957bd1df1b906f5.jpg)
[STL source code analysis] summary notes (10): hashtable exploration
![20200803 T3 my friends [divide and conquer NTT optimization recursion]](/img/35/01201e3136e3dd5cd562a0481f1ee9.jpg)
20200803 T3 my friends [divide and conquer NTT optimization recursion]
![[STL source code analysis] summary notes (5): a good helper for understanding iterators --list](/img/a7/c54bfb6a03c04e4ffeafdfcf8cedc2.jpg)
[STL source code analysis] summary notes (5): a good helper for understanding iterators --list

Classification of MNIST datasets with keras
![[compilation principle] 05- syntax guided semantic computing -- Semantic Computing Based on translation mode](/img/7d/f3ba5a69e182160a5e1b51c7d9aaf9.png)
[compilation principle] 05- syntax guided semantic computing -- Semantic Computing Based on translation mode

2022 low voltage electrician operation certificate test question simulation test platform operation

2022.5.30-6.5 AI行业周刊(第100期):三年时光
随机推荐
[Oracle database] mammy tutorial day03 Sorting Query
【Oracle 数据库】奶妈式教程day03 排序查询
Ffmpe a small demo to understand 80% of common APIs
2、 User login and registration
Cartland number application
What is the difference between gaussdb for redis and redis?
【CF#223 (Div. 2)】A. Sereja and Dima
【Oracle 数据库】奶妈式教程day04 排序查询
MFC custom string linked list
Niuke wrong question 3.1
Compound ratemodel contract analysis
1190. invert the substring between each pair of parentheses
Sdl-2 thread logic
Miscellany C language
The gap between the parent box and the child box
Crmeb/v4.4 Standard Version open version mall source code applet official account h5+app mall source code
Arduino_ STM development record
20200727 T2 small w playing game [generating function (binomial inversion technique)]
MySQL设置管理员密码无法生效的案例一则
[STL source code analysis] summary note (2): overview of containers