linux中deepin的vscode配置c/c++環境及qt環境及java的環境的配置和win102016版激活方式


1、首先下載g++軟件包:在終端中輸入命令sudo apt-get install build-essential
2、在https://www.cnblogs.com/lzhu/p/10449726.html網站中找到相關的插件配置
3、launch.json的配置
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/${fileBasenameNoExtension}.o",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"preLaunchTask": "build",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
3、按f5加others后彈出系統默認的tasks.json配置文件后
將其修改為:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0", //2.0.0為最新的版本
"tasks":
[
{
"label": "build",//任務名,和lanuch.json中的"preLaunchTask":"build"一致
"type": "shell",
"command": "g++",
"args": ["-g","${file}", "-o", "${workspaceRoot}/${fileBasenameNoExtension}.o"], // g++ 后面的命令參數,這一行是整個配置的關鍵如果錯了則vscode會找不到要編譯的文件
"problemMatcher":
{
"owner":"cpp",
"fileLocation":["relative","${workspaceRoot}"],
"pattern":
{
"regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$",
"file": 1,
"line":2,
"column":3,
"severity": 4,
"location": 2,
"message": 5
}
}
}

]
}
補充一點:字體推薦atom one dark theme
及書鼠標滑動改變字體的大小:"editor.mouseWheelZoom": true

4、隨便把qt的一些配置也總結一下:
在完成上述幾步之后,在qt上配置環境
1、在軟件商店中下載qt creator
2、通過命令行 sudo apt-get install qt5-default
3、對qt進行配置----------->這也是解決在qt5中創建新的project時找不到kit的解決方案之一
4、將上述的軟件包下載完畢之后就可以在qt creator中的構造器中選擇默認桌面的kit
5、------>配置的關鍵在於將qt的版本從none換成我們之前的我們通過命令行下載下來的版本即可
6、配置到此結束,創建project開始編程之旅吧!

 

 

 java的環境的配置:

一、安裝好jdk與jre

 

二、1 創建JAVA_HOME,值是你的剛剛jdk的安裝目錄,比如 C:\Program Files (x86)\Java\jdk1.8.0_101

2 創建CLASSPATH,值是  .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar(注意最前面有一點) 3 編輯Path,把值放到最前邊  %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

 win10 2016的激活

1、連接網絡

2、slmgr /ipk DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ

3、slmgr /skms xykz.f3322.org

4、slmgr /ato

5、over

 

 

vscode的c++的配置:

在系統變量中點擊“path",然后點擊編輯,將上面的路徑加入即可 格式形如C:\TDM-GCC-64\bin。

vscode的界面控制:mateier theme 主題  加  monoter字體樣式

打開"文件->首選項->設置
打開settings.json文件
在setting.json 中添加"editor.mouseWheelZoom": true



power mode:煙花設置
    
    "powermode.enabled": true,
    "powermode.enableShake": false,
    "powermode.presets": "fireworks",

 

 

 

 

 

 

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM