目录

Vistual Studio Code 编辑器使用

Vistual Studio Code编辑器常用设置和插件。

常用设置

{
  "editor.fontFamily": "ubuntu mono",
  "markdown.preview.fontFamily": "'Ubuntu mono', 'Droid Sans', sans-serif",
  "editor.detectIndentation": false,
  "window.titleBarStyle": "custom", // 去掉难看的系统标题栏
  "editor.fontSize": 16, // 编辑器字体大小
  "window.zoomLevel": 1 // 系统界面缩放
}

SFTP 插件

Cmd + shift + P 调出控制台, 执行 SFTP:config命令,生成参考配置文件.vscode/sftp.json

{
  "name": "markdown博客",
  "protocol": "sftp",
  "host": "101.200.144.41",
  "username": "cky",
  "port": 22,
  "interactiveAuth": true,
  "remotePath": "/home/cky/workspace/markdown",
  "uploadOnSave": true,
  "privateKeyPath": "/Users/iqingyi/.ssh/id_rsa",
  "watcher": {
    "files": "**/*",
    "autoUpload": true,
    "autoDelete": true
  },
  "ignore": [".vscode", ".git", ".DS_Store"]
}

phpfmt

安装好后,可以考虑将 editor.formatOnSave 设置为true

其他代码格式化工具