当前位置:网站首页>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
边栏推荐
- Is the pointer symbol of C language close to variable type or variable name?
- Download and installation steps of xshell + xftp
- Problems of class in C # and database connection
- Jerry's factors that usually affect CPU performance test results are: [article]
- 19. Delete the penultimate node of the linked list (linked list)
- What are Jerry's usual program exceptions? [chapter]
- 二叉树的构建和遍历
- MapReduce compression
- JUC concurrent programming 06 -- in-depth analysis of AQS source code of queue synchronizer
- Detailed explanation of MapReduce calculation process
猜你喜欢
SQL Server 递归查询上下级
Ueditor -- limitation of 4m size of image upload component
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
JUC concurrent programming 06 -- in-depth analysis of AQS source code of queue synchronizer
高价买来的课程,公开了!phper资料分享
Swagger2 自定义参数注解如何不显示
SSH利用私钥无密钥连接服务器踩坑实录
JVM - common parameters
Reading integrity monitoring techniques for vision navigation systems - 5 Results
解决方案架构师的小锦囊 - 架构图的 5 种类型
随机推荐
The courses bought at a high price are open! PHPer data sharing
SQL server query database deadlock
1、两数之和(哈希表)
Learning note 5 - gradient explosion and gradient disappearance (k-fold cross verification)
ID number verification system based on visual structure - Raspberry implementation
Sim Api User Guide(5)
Esp32 learning - use and configuration of GPIO
得到知识服务app原型设计比较与实践
Detailed explanation of MapReduce calculation process
242、有效字母异位词(哈希表)
得到知识服务app原型设计比较与实践
Learning notes 7-depth neural network optimization
Chapter 120 SQL function round
Resolution and size of mainstream mobile phones
链表相交(链表)
/Can etc / shadow be cracked?
Solution architect's small bag - 5 types of architecture diagrams
二叉树的构建和遍历
【leetcode】107. Sequence traversal of binary tree II
Example of pop-up task progress bar function based on pyqt5