VSCode 创建Python 项目(最简单,最少步骤,无痛从pycharm迁移项目)

第一步:下载

下载地址:https://code.visualstudio.com/docs/?dv=win64user

第二步:配置

2.1:VsCode设置中文

按住键盘上的"Ctrl+Shift+P"组合键,打开命令面板。

  • 在命令面板中输入"Configure Display Language"。
  • 点击"Configure Display Language"选项。
  • 在弹出的语言选择列表中,选择"zh-cn",代表简体中文。

重启VSCode:点击"Restart"按钮,重启VSCode软件。重启后,VSCode的界面将变成中文。

2.2 VsCode设置Python环境

打开"扩展" 或使用快捷命令(Ctrl+Shift+X),

"Python","Python Debugger" 分别将两个插件进行下载安装。

Python插件安装好后进行勾选选项。

2.3 VsCode设置settings.json

打开 settings.json

在settings.json 中配置如下属性值。

python 复制代码
{
    "python.createEnvironment.trigger": "off",
    "editor.fontVariations": false,
    "editor.fontSize": 16, // 字体大小
    "python.analysis.completeFunctionParens": true, //补全括号
    "editor.fontLigatures": false, // 字体连字
    "editor.renderControlCharacters": true, //控制字符
    "files.autoSave": "afterDelay", //自动保存文件
    "editor.wordWrap": "on", //自动折行
    "editor.mouseWheelZoom": true, //鼠标滚轮缩放
    "editor.formatOnPaste": true, //自动格式化
    "editor.formatOnSave": true, //自动格式化
    "editor.formatOnType": true, //自动格式化
}

在设置里面输入"unicode"将下面两个选项取消。

第三步:VsCode 创建项目:

1.在本地创建一个文件夹。

2.将创建的文件夹添加到工作区。

第四步: VsCode打开Pycharm创建的项目,也是通过"将文件夹添加到工作区"的方式打开项目。

相关推荐
bkspiderx11 小时前
在Visual Studio中安装与配置Qt插件(Qt Visual Studio Tools)
ide·qt·visual studio·qt插件
lusklusklusk1 天前
使用Visual Studio一步步创建并部署SSRS_PBIRS报表:数据源配置、图表设计、参数化查询、部署参数与排错实战
数据库·ide·visual studio
解道Jdon1 天前
Rust重写OpenCode Rune:性能提升最高100倍
ide·windows·git·svn·eclipse·github·visual studio
莫卢俊德1 天前
vscode ssh config
ide·vscode·ssh
郝学胜-神的一滴3 天前
Effective Python 条款44:善用属性注解
开发语言·c++·vscode·python·算法·stl
BD_Marathon6 天前
安装Jupyter notebook
ide·python·jupyter
讓丄帝愛伱7 天前
Zed Markdown 预览不能铺满全屏的原因及解决
ide
FungLeo8 天前
FengCMS · PHP+MySQL 升级实录 · 编辑器迁移:KindEditor → wangEditor5 +服务端 HTML Purifier
mysql·编辑器·php·富文本编辑器·fengcms
BD_Marathon8 天前
Jupyter魔法命令
ide·python·jupyter
郝学胜-神的一滴8 天前
Effective STL 条款 07:指针容器销毁前先删除
开发语言·c++·vscode·leetcode·rpc·visual studio