• sublime text 3 常用插件


    sublime text 3:
    按快捷键 ctrl+` 或者点击 View → Show/Hide Console 调出控制台Console;
    import  urllib.request,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp,pf),'wb').write(urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())

    1.按ctrl + shift + P调出命令面板;
    2.输入 install 调出 Package Control:Install Package 选项,并回车;
     SublimeTmpl        改模板  Sublime Text 3DataPackagesSublimeTmpl emplates
        快速生成文件模板
        ctrl+alt+h     html
        ctrl+alt+j     javascript
        ctrl+alt+c     css
        ctrl+alt+p     php
        ctrl+alt+r     ruby
        ctrl+alt+shift+p     python
    Alignment
        等号对齐
    Better Completion
    BracketHighlighter
        高亮显示匹配的括号、引号和标签
    JsFormat
    SideBarEnhancements
        侧边栏增强
    CTag
    ConvertToUTF8
    Pretty JSON
        格式化json
    LESS
        less语法高亮
    Less2Css   ---- 需要python
        less保存同时生成css
        Less2Css插件依赖lessc这个工具, 下载地址: https://github.com/duncansmart/less.js-windows
            然后把目录地址加入到环境变量PATH的中,如D:openless.js-windows
            设置好之后,通过快捷键 Windows徽标键+R键 调出运行窗口,输入cmd,在命令行中输入lessc,如果有如下提示则表示设置成功
        如果的dev环境中不想压缩,可以通过 Preference —— Package Settings —— Less2Css ——Setting User 增加:
             {"minify": false}

     Theme - Flatland
       修改 Preferences 文件,通过菜单 “Preferences > Settings - User” 可打开用户配置文件,在其中添加(或修改原来的设置):

    {
    "theme": "Flatland Dark.sublime-theme",
    "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme"
    }

        

    nodejs

    1.运行Sublime,菜单上找到Tools ---> Build System ---> new Build System

    2.在文件中复制入

    {
        "cmd": ["node", "$file"],
        "file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
        "selector": "source.javascript"
    }

    3.保存文件为NodeJs.sublime-build

    4.菜单上找到Tools ---> Build System --->选择 NodeJs

    5.安装sublime插件 JavaScript & NodeJs Snippets

    6.新建test.js文件,输入 console.log('Hello Node.js'); 按快捷键 Ctrl + B 运行,成功输出

    7.停止运行 菜单上找到Tools ---> 停止编译

    常用快捷键:

    Ctrl+P 查找当前项目中的文件和快速搜索;输入 @ 查找文件主标题/函数;或者输入 : 跳转到文件某行;
    Ctrl+R 快速列出/跳转到某个函数

    Ctrl+D 选中一个单词 (反复按快捷键,即可继续向下同时选中下一个相同的文本进行同时编辑)
    Ctrl+G 跳转到相应的行
    Ctrl+J 合并行(已选择需要合并的多行时)
    Ctrl+L 选择整行(按住-继续选择下行)
    Ctrl+M 光标移动至括号内开始或结束的位置
    Ctrl + Shift + M 选中括号内所有内容

    Ctrl+K+T 折叠属性
    Ctrl+K+U 改为大写
    Ctrl+K+L 改为小写
    Ctrl+K+0 展开所有

    DocBlockr

    Preferences --> Package Settings --> DocBlockr -> Settings -User:

    {
        "jsdocs_function_description": false,
        "jsdocs_return_description": false,
        "jsdocs_param_description": false,
        "jsdocs_param_name": true,
        "jsdocs_align_tags": "shallow",
        "jsdocs_spacer_between_sections": true
    }
    PHPCs
    preferences--package settings---php code sniffer
    {
    
    // Path to php on windows installation
    // This is needed as we cannot run phars on windows, so we run it through php
    "phpcs_php_prefix_path": "C:\wamp64\bin\php\php7.0.10\php.exe",
    
    // This is the path to the bat file when we installed PHP_CodeSniffer
    "phpcs_executable_path": "C:\wamp64\bin\php\php5.6.25\phpcs.bat",
    
    // PHP-CS-Fixer settings
    // Don't want to auto fix issue with php-cs-fixer
    "php_cs_fixer_on_save": false,
    
    // Show the quick panel
    "php_cs_fixer_show_quick_panel": true,
    
    // The fixer phar file is stored here:
    "php_cs_fixer_executable_path": "D:\seekasia\src\papi\php-cs-fixer.phar",
    
    // PHP Linter settings
    // Yes, lets lint the files
    "phpcs_linter_run": true,
    
    // And execute that on each file when saved (php only as per extensions_to_execute)
    "phpcs_linter_command_on_save": true,
    
    // Path to php
    "phpcs_php_path": "C:\wamp64\bin\php\php7.0.10\php.exe",
    
    // This is the regex format of the errors
    "phpcs_linter_regex": "(?P<message>.*) on line (?P<line>\d+)",
    
    
    // PHP Mess Detector settings
    // Not turning on the mess detector here
    "phpmd_run": false,
    "phpmd_command_on_save": false,
    "phpmd_executable_path": "",
    "phpmd_additional_args": {}
    }

     XDebug

    1.project  --> save project as...

    2.project  -->  edit project

    {
        "folders":
        [
            {
                "path": "D:\seekasia\src\JobSeekers\myjs"
            },
            {
                "path": "D:\seekasia\src\papi"
            }
        ],
        //https://github.com/martomo/SublimeTextXdebug
        "settings":
        {
            "tab_size": 4,
            "xdebug":
            {
                "break_on_exception": "Fatal error",
                //"close_on_stop": true,
                "path_mapping":
                {
                    "/var/www/seekasia.com/JobSeekers/myjs": "D:\seekasia\src\JobSeekers\myjs",
                    "/var/www/seekasia.com/papi": "D:\seekasia\src\papi",
                },
                "port": 9001,
                "super_globals": true
            }
        }
    }
  • 相关阅读:
    #公式与实现# Jacobi迭代 Gauss-Seidel迭代
    数据结构-C:二叉树的遍历
    c++
    Unix Systems Programming
    二进制文件读取写入(一)
    关于理论、模型与算法
    《计算机图形学与几何造型导论》读书笔记1
    petaPar培训文档
    等参元的高斯积分详解
    水平集函数具体实现
  • 原文地址:https://www.cnblogs.com/dfg727/p/3783314.html
Copyright © 2020-2023  润新知