Blogger Information
Blog 11
fans 0
comment 1
visits 13879
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
vs code 插件及快捷键配置
Alfred的学习笔记
Original
1307 people have browsed it

插件设置:

  1. Ctrl + Shift + X 唤醒安装扩展
  2. 安装以下扩展

  1. phpfmt配置设置:设置->phpfmt

快捷键设置:

  1. 格式化 Alt + Shift + F
  2. Ctrl + E 删除一行 需要键盘快捷键方式重新设置,原(Ctrl + Shift + K)

配置:

  1. editor.wordWrap 显示换行

其他插件:

github 插件链接
安装插件KoroFileHeader
文件头部注释:Fileheader:custom Made
函数注释:Fileheader:cursor Mode
随便点击哪个”在setting.json”中编辑,输入以下设置后保存,然后重启vscode更新设置:

  1. "fileheader.configObj": {
  2. // "autoAdd": true, // 默认开启 自动添加头部注释
  3. // "autoAlready": true, // 默认开启 自动添加头部注释:只允许插件支持的语言,以及用户通过language 选项自定义的注释
  4. // "prohibitAutoAdd": [
  5. // "json",
  6. // "md"
  7. // ], // 禁止.json .md文件,自动添加头部注释
  8. // "headInsertLine": {
  9. // "php": 2 // php后缀的文件,在第二行插入文件头部注释
  10. // },
  11. "specialOptions": {
  12. "LastEditTime": "LastTime",
  13. "LastEditors": "LastAuthor",
  14. }
  15. },
  16. "fileheader.customMade": {
  17. "Author": "Alfred",
  18. "Date": "Do not edit",
  19. "LastEditors": "Alfred",
  20. "LastEditTime": "Do not edit",
  21. "Description": "",
  22. },
  23. "fileheader.cursorMode": {
  24. "name": "",
  25. "param": "",
  26. "return": ""
  27. }

文件头部注释
快捷键:crtl+alt+i(window),ctrl+cmd+t (mac)
函数注释:ctrl+alt+t (window), ctrl+alt+t(mac)

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post