首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >VS Code 使用

VS Code 使用

作者头像
acc8226
发布2022-05-17 13:15:09
发布2022-05-17 13:15:09
1.2K00
代码可运行
举报
文章被收录于专栏:叽叽西叽叽西
运行总次数:0
代码可运行

作为一款开箱即用的产物,尽量不做过多额外配置。

设置 vscode 换行符 (\n)

直接搜索files:eol进行设置。

我的必装插件

IntelliJ IDEA 键盘映射

markdownlint

VS code 更改字体

两种字体的介绍: 等宽字体(英语:Monospaced Font)是指字符宽度相同的电脑字体。与此相对,字符宽度不尽相同的电脑字体称为比例字体(Proportional Font)。

在传统西文印刷中,比例字体可以提高单词的可读性。但因打字机及早期的电脑画面显示等由于技术的局限,无法进行字母宽度的比例调整,因此将每个字符都制作成一样的宽度,从而形成了等宽字体。在等宽字体中,字母 i , j 显得两侧余白较多,而字母 w , m 等的笔画显得相当拥挤。

但是随着图形用户界面主流的更新和电脑技术的提高,处理比例字体的局限性得到了突破,因此现在排版上显得比较自然的比例字体的使用已经相当普及。

由于等宽字体的特点,当今的平面设计上也有特意使用等宽字体所具有的文化特征进行创作的风格,其中最具有代表性的就是 ASCII 艺术。ASCII 艺术所使用的字符都是等宽字体,如果改用比例字体,图片往往变形而无法表达创作者本意。在网页设计中, <tt></tt>或<pre></pre> HTML 标记通常都是使用等宽字体。另外,代码以及文字接口的程序,如虚拟终端等也经常使用等宽字体。

另外,代码以及文字接口的程序,如虚拟终端等也经常使用等宽字体

修改 vscode 终端字体

在 code-首选项-设置里面,输入fontsize, 点击功能-终端即可轻松找到。

VS Code 配置 Python

Prerequisites

To successfully complete this tutorial, you need to first setup your Python development environment. Specifically, this tutorial requires:

  • VS Code
  • VS Code Python extension
  • Python 3

验证安装

Linux/macOS: open a Terminal Window and type the following command:

代码语言:javascript
代码运行次数:0
运行
复制
python3 --version

Windows: open a command prompt and run the following command:

代码语言:javascript
代码运行次数:0
运行
复制
py -3 --version

Select a Python interpreter

Python is an interpreted language, and in order to run Python code and get Python IntelliSense, you must tell VS Code which interpreter to use.

From within VS Code, select a Python 3 interpreter by opening the Command Palette (Ctrl+Shift+P), start typing the Python: Select Interpreter command to search, then select the command. You can also use the Select Python Environment option on the Status Bar if available (it may already show a selected interpreter, too)

启用虚拟环境

Note: When you create a new virtual environment, you should be prompted by VS Code to set it as the default for your workspace folder. If selected, the environment will automatically be activated when you open a new terminal.

For Windows

代码语言:javascript
代码运行次数:0
运行
复制
py -3 -m venv .venv
.venv\scripts\activate

Once you are finished, type deactivate in the terminal window to deactivate the virtual environment.

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-05-17,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 设置 vscode 换行符 (\n)
  • 我的必装插件
  • VS code 更改字体
  • 修改 vscode 终端字体
  • VS Code 配置 Python
    • Prerequisites
    • 验证安装
    • Select a Python interpreter
    • 启用虚拟环境
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档