zoukankan      html  css  js  c++  java
  • 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

    只有不断学习才能进步!

  • 相关阅读:
    javascript执行机制
    PhpStorm常用的一些快捷键
    php值传递和引用传递的区别是什么?
    echo与print,var_dump()和print_r()的区别
    PHP错误类型及屏蔽方法
    工作中常用的正则表达式
    Linux环境变量配置文件/etc/profile、/etc/bashrc、~/.bashrc的区别以及一些隐藏文件的作用
    log4j配置不生效
    Java执行CMD命令
    jar的解压与打包
  • 原文地址:https://www.cnblogs.com/wenbao/p/7801263.html
Copyright © 2011-2022 走看看