wenbao与vscode

linux安装

创立临时文件夹
mkdir /tmp/vscode; cd /tmp/vscode/


下载压缩包
wget https://az764295.vo.msecnd.net/public/0.3.0/VSCode-linux-x64.zip
解压
unar VSCode-linux-x64.zip

cp VSCode-linux-x64 /opt/

sudo chmod +x /opt/VSCode-linux-x64/Code


创建软链接
ln -s /opt/VSCode-linux-x64/Code /usr/local/bin/code

code a.cpp //试运行


创建桌面启动

cp /opt/VSCode-linux-x64/resources/app/vso.png /usr/share/icons/


gedit /tmp/vscode/visualstudiocode.desktop
1 [Desktop Entry]
2 Name=Visual Studio Code
3 Comment=Multi-platform code editor for Linux
4 Exec=/opt/VSCode-linux-x64/Code
5 Icon=/usr/share/icons/vso.png
6 Type=Application
7 StartupNotify=true
8 Categories=TextEditor;Development;Utility;
9 MimeType=text/plain;

cp /tmp/vscode/visualstudiocode.desktop /usr/share/applications/

 

astyle

apt-get install astyle

"astyle.cmd_options": [
         "--style=google",
         "--indent-switches",
         "--indent-preprocessor",
         "--break-blocks",
         "--delete-empty-lines",
         "--pad-oper"
     ]

phpformatter

下载phar

安装phpformatter插件

用户配置 

//phpformatter
"php.validate.executablePath": "D:/xampp/php/php.exe",
"workbench.panel.location": "bottom",
"phpformatter.pharPath": "D:/xampp/php/php-cs-fixer-v2.phar",
"phpformatter.logging": true,
"phpformatter.phpPath": "D:/xampp/php/php.exe",
"phpformatter.arguments": [
"--rules=@Symfony"
]
 
 
keybindings.json
 
{
"key": "alt+shift+f",
"command": "phpformatter.fix",
"when": "editorFocus"
}
 
参考:
https://www.cnblogs.com/huangtailang/p/6604124.html

只有不断学习才能进步!

原文地址:https://www.cnblogs.com/wenbao/p/7801263.html