开发环境初始化配置

本文最后更新于:2022年5月5日 上午

开发环境初始化配置

开发环境初始化配置

配置环境

安装node

https://nodejs.org/en/

安装 yarn

npm i -g yarn

安装 pnpm

npm i -g pnpm

安装 git

https://git-scm.com/download/win

字体

安装 JetBrains Mono 字体

官网 https://github.com/JetBrains/JetBrainsMono/

下载链接 https://github.com/JetBrains/JetBrainsMono/releases/latest

解压缩 ****文件夹

双击 **** 安装

安装 Fira Code字体

官网 https://github.com/tonsky/FiraCode

下载链接 https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip

解压缩 ttf文件夹

双击 FiraCode-Light 安装

设置vscode 字体

"editor.fontLigatures": true, // 启用连字
"editor.fontFamily": "JetBrains Mono", //设置的字体类型为 

由于 JetBrains自带连字效果,所以不安装 Fira Code 也可以

"editor.fontFamily": "JetBrains Mono,Fira Code Light", //设置的字体类型为 Fira Code

input font 字体

安装 Input-Regular_(InputMono-Regular).ttf

"editor.fontFamily": "Input Mono,JetBrains Mono,Fira Code Light", //设置的字体类型为 Fira Code

Mac 切换任务

Contexts for mac

alt-tab-macos

mac 输入法切换

// 将键绑定放在此文件中以覆盖默认值
[
  {
    "key": "cmd+left",
    "command": "-cursorHome",
    "when": "textInputFocus"
  },
  {
    "key": "cmd+right",
    "command": "-cursorEnd",
    "when": "textInputFocus"
  },
  {
    "key": "cmd+left",
    "command": "cursorWordLeft",
    "when": "textInputFocus"
  },
  {
    "key": "alt+left",
    "command": "-cursorWordLeft",
    "when": "textInputFocus"
  },
  {
    "key": "cmd+right",
    "command": "cursorWordEndRight",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+right",
    "command": "cursorWordEndRightSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+alt+right",
    "command": "-cursorWordEndRightSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+left",
    "command": "cursorWordLeftSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+alt+left",
    "command": "-cursorWordLeftSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+up",
    "command": "cursorColumnSelectUp",
    "when": "editorColumnSelection && textInputFocus"
  },
  {
    "key": "shift+up",
    "command": "-cursorColumnSelectUp",
    "when": "editorColumnSelection && textInputFocus"
  },
  {
    "key": "shift+up",
    "command": "-cursorUpSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+up",
    "command": "-cursorTopSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+down",
    "command": "cursorColumnSelectDown",
    "when": "editorColumnSelection && textInputFocus"
  },
  {
    "key": "shift+down",
    "command": "-cursorColumnSelectDown",
    "when": "editorColumnSelection && textInputFocus"
  },
  {
    "key": "shift+cmd+down",
    "command": "cursorDownSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+down",
    "command": "-cursorDownSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+up",
    "command": "cursorUpSelect"
  },
  {
    "key": "alt+down",
    "command": "-notebook.cell.moveDown",
    "when": "notebookEditorFocused && !inputFocus"
  }
]

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议,转载请注明出处。