当前位置:网站首页>VScode
VScode
2022-04-23 10:48:00 【qq1033930618】
List of articles
One 、VScode download
Download notes found in the app store cannot be entered in Chinese Using command line download
With sudo Run the following command as user , Update package index , And install dependent software
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
Use wget Command insert Microsoft GPG key
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
Enable Visual Studio Code Source warehouse
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
once apt Software source is enabled , install Visual Studio Code software package
sudo apt install code
When a new version is released , You can use your desktop standard software tools , Or run commands on your terminal , To upgrade Visual Studio Code software package
sudo apt update
sudo apt upgrade
Two 、 Extended installation
Click on the left side of the extensions
download python
3、 ... and 、 Theme change
Lower left corner setting -> color theme
Or press and hold ctrl+k+t
Light+(default light)
Four 、 Hidden files
File->Preference->Settings
Input Files You can find it
Files:Exclude add to .*
5、 ... and 、 Interpreter settings
python stay Ubuntu When the terminal is running
Folder path not found
Add... To the running file
import sys
sys.path.append(' Folder path ')
1、 see VsCode Used by default in python Interpreter
2、Ctrl + Shift + p Open the command line panel
3、 Input Python:Select Interpreter command , Configure default interpreter
4、 The default interpreter takes effect
6、 ... and 、 Default path settings
A lot of times import No problem found
Mostly run files in the package When importing files in another package
Click the fourth icon vertically on the left Run and Debug
modify launch.json file
Add a line of code Pay attention to commas
"env": {"PYTHONPATH":"${workspaceRoot}"},
Need to save and restart vscode
Click on the top left corner of this interface RUN Right green triangle (Python:CurrentFile)
You cannot click the right triangle in the upper right corner to run
how cd Go to the target folder and execute
Add... To the above documents
"cwd": "${fileDirname}",
7、 ... and 、 Clear the terminal shortcut
1、 Press ctrl+shift+p, Input open keyboard shortcuts, And return
2、 Input workbench.action.terminal.clear
3、 Double click as shown in the figure , Press and hold the keyboard ctrl+k, You can enter.
8、 ... and 、 Disable restart terminal prompt
Session contents restored from DD/MM/YYYY at HH:MM:SS
Lower left corner setting setting
terminal.integrated.persistentSessionReviveProcess
choice never
Nine 、 Multiline comment
ctrl + /
You can't use the keypad / Should use the ? Below /
版权声明
本文为[qq1033930618]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230618496965.html
边栏推荐
- Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
- Contact between domain name and IP address
- Comparison and practice of prototype design of knowledge service app
- 142. Circular linked list||
- Construction and traversal of binary tree
- [provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)
- Image processing - Noise notes
- SSH uses private key to connect to server without key
- Leetcode22:括号生成
- MySQL common statements
猜你喜欢

Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP

Yarn core parameter configuration
Detailed explanation of MapReduce calculation process

中职网络安全2022国赛之CVE-2019-0708漏洞利用

How does the swagger2 interface import postman

使用zerotier让异地设备组局域网

SQL Server recursive query of superior and subordinate

Diary of dishes | Blue Bridge Cup - hexadecimal to octal (hand torn version) with hexadecimal conversion notes
![[provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)](/img/e4/3c47edbc3241ba86f10a1ac8a963fd.png)
[provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)

JVM——》常用命令
随机推荐
Leetcode22:括号生成
RESTful和SOAP的区别
SQL Server cursor circular table data
209. Subarray with the smallest length (array)
得到知识服务app原型设计比较与实践
SSH利用私钥无密钥连接服务器踩坑实录
Jerry's more accurate determination of abnormal address [chapter]
主流手机分辨率与尺寸
SQL Server 游标循环表数据
Construction and traversal of binary tree
mysql同一个表中相同数据怎么合并
Installing MySQL with CentOS / Linux
高价买来的课程,公开了!phper资料分享
19、删除链表的倒数第N个节点(链表)
SQL Server recursive query of superior and subordinate
解决方案架构师的小锦囊 - 架构图的 5 种类型
Solution architect's small bag - 5 types of architecture diagrams
How can swagger2 custom parameter annotations not be displayed
454、四数之和(哈希表)
链表相交(链表)