VS Code必要插件(php、typescript)

1.括号高亮

Bracket Pair Colorizer     

2.中文语言包

Chinese (Simplified) Language Pack for Visual Studio Code    

3.Eclipse快捷键

Eclipse Keymap    

4.JavaScript语法检测

ESLint   

5.主题

One Dark Pro    

6.路径提示

Path Intellisense

7.php debug调试

PHP Debug

8.php 格式化

PHP Formatter

9.php 类、函数提示

PHP IntelliSense

10.TS语法检测

TSLint

11.文件图标

vscode-icons

 

 

User Settings配置
{
“editor.formatOnType”: false,
“editor.formatOnSave”: false,
“workbench.colorTheme”: “One Dark Pro”,
//打印日志信息,用于调试
“phpformatter.logging”: true,
//不使用composer方式
“phpformatter.composer”: false,
//添加自定义参数,默认的参数level已经在新版本中移出所以会导致运行出错
//RULES=[@PSR1,@PSR2,@Symfony]
//source:https://github.com/FriendsOfPHP/PHP-CS-Fixer#usage
“phpformatter.arguments”: [“–rules=@PSR2”],
// Should point to php-cs-fixer.phar file, if you have installed this manually (without Composer). Should include .phar extension.
// php-cs-fixer.phar路径,使用composer方式时可以不填
“phpformatter.pharPath”: “D:/phpStudy/PHPTutorial/php/php-cs-fixer-v2.phar”,
// If the pharPath is set, and you are not using Composer, and you haven’t added PHP to your PATH, this should point to the php.exe file.
// php路径,使用composer方式时可以不填
“phpformatter.phpPath”: “D:/phpStudy/PHPTutorial/php/php-7.0.12-nts/php.exe”,
“explorer.confirmDelete”: false,
“workbench.activityBar.visible”: true,
“workbench.iconTheme”: “vscode-icons”,
“terminal.integrated.shell.windows”: “C:\\Program Files\\Git\\bin\\bash.exe”
}