linux in deepin of vscode configuration c / c ++ qt environment and the environment

1, first download g ++ package: Enter the command sudo apt-get install build-essential in the terminal
2, find the plug-in configuration in https://www.cnblogs.com/lzhu/p/10449726.html site
3, launch.json configuration
{
"Version": "0.2.0",
"configurations": [
{
"name": "(GDB) the Launch",
"type": "cppdbg",
"Request": "Launch",
" Program ":" $ {workspaceRoot} / {$} fileBasenameNoExtension .o ",
" args ": [],
" stopAtEntry ": to false,
" CWD ":" workspaceRoot $ {} ",
" Environment ": [],
" externalConsole ": to true,
" preLaunchTask ":" Build ",
" MIMode ":" gdb ",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": to true
}
]
}
]
}
. 3, the ejection system by adding the others f5 tasks.json default profile
to modify:
{
// See https://go.microsoft.com/fwlink/?LinkId 733 558 =
// at the Documentation for the About tasks.json format at the
"version": "2.0.0", //2.0.0 to the latest version of
"tasks":
[
{
"label": "Build", // task name , and the lanuch.json "preLaunchTask": "build" same
"type": "the shell",
"Command": "G ++",
"args": [ "-g", "File} {$", "- o "," $ {workspaceRoot} / $ {fileBasenameNoExtension} .o "], // command parameter behind the g ++, this line is the key to the whole configuration if a mistake is vscode will not find the file to compile
"problemMatcher":
{
"owner":"cpp",
"fileLocation":["relative","${workspaceRoot}"],
"pattern":
{
"regexp": "^ ([^ \\\\ S] *.) \\\\ ((\\\\ D +, D + \\\\) \\\\): \\\ (. *) \ S * $ ",
" File ":. 1,
" Line ": 2,
" column ":. 3,
" Severity ":. 4,
" LOCATION ": 2,
" Message ":. 5
}
}
}

]
}
Add this: font recommended atom one dark theme
and book sliding the mouse to change the font size: "editor.mouseWheelZoom": true

4, just put some configuration qt also summarize:
After completing the above steps, configure the environment on the qt
1, qt creator software download store
2, the command line APT-GET install QT5 sudo-default
3, for qt configure -----------> this kit also solve one can not find a solution when you create a new project in qt5
after 4, the above packages can be downloaded in qt creator select a default constructor desktop Kit
5, ------> key configuration is that the version we downloaded qt replaced by a command-line version before we can from none
6, the configuration is over, create a project started programming journey!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/z2529827226/p/11775821.html
Recommended