sublime插件

Sublime Text 3 配置心得【别人的】

sublime必备的一些插件

Package Control

功能:安装包管理

简介:sublime插件控制台,提供添加、删除、禁用、查找插件等功能

使用:https://sublime.wbond.net/installation

常用插件:

ConvertToUTF8 :使sublime支持gbk 
SyncedSidebar :侧边栏高亮显示当前编辑的文件 
DocBlockr     :更方便的创建注释 
A File Icon   :侧边栏文件图标  
Emmet         :自动补全神器 
Alignment     :自动对齐 
Ctags         : 函数跳转
CTags         :产生标记文件以帮助在源文件中定位对象
SublimeTmpl   : 新建html、css、javascript、php、python、ruby六种类型的文件模板,所有的文件模板都在插件目录的templates文件夹里,可以自定义编辑文件模板。 
SidebarEnhancements  :扩展边栏功能
sublime-text-git     : Git 版本控制 
BracketHighlighter   :括号,引号这类高亮功能 
ClickableURLs        :可点击的URL
MarkDown Editing\OmniMarkupPreviewer :查看和编辑 Markdown 文件 

插件:

 

Alignment

功能:”=”号对齐

简介:变量定义太多,长短不一,可一键对齐

使用:默认快捷键Ctrl+Alt+A和QQ截屏冲突,可设置其他快捷键如:Ctrl+Shift+Alt+A;先选择要对齐的文本

{
    // If the indent level of a multi-line selection should be aligned
    "align_indent": true,
    // If indentation is done via tabs, set this to true to also align
    // mid-line characters via tabs. This may cause alignment issues when
    // viewing the file in an editor with different tab width settings. This
    // will also cause multi-character operators to be left-aligned to the
    // first character in the operator instead of the character from the
    // "alignment_chars" setting.
    "mid_line_tabs": false,
    // The mid-line characters to align in a multi-line selection, changing
    // this to an empty array will disable mid-line alignment
    "alignment_chars": [
        "=", ":"
    ],
    // If the following character is matched for alignment, insert a space
    // before it in the final alignment
    "alignment_space_chars": [
        "=", ":"
    ],
    // The characters to align along with "alignment_chars"
    // For instance if the = is to be aligned, there are a number of
    // symbols that can be combined with the = to make an operator, and all
    // of those must be kept next to the = for the operator to be parsed
    "alignment_prefix_chars": [
        "+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "."
    ]
}

Doc​Blockr

功能:PHPDoc风格的注释

简介:标准的注释,包括函数名、参数、返回值等,并以多行显示,手动写比较麻烦

使用:输入/*、/**然后回车,还有很多用法,请参照

https://sublime.wbond.net/packages/DocBlockr

{
    "jsdocs_extra_tags":
    [
        "@Author 刘子鹤",
        "@CreateTime {{date}}",
        "@UpdateTime {{date}}",
        "@examples ${1:[examples]}",
    ],

    // If the indent level of a multi-line selection should be aligned
    "align_indent": true,
    // If indentation is done via tabs, set this to true to also align
    // mid-line characters via tabs. This may cause alignment issues when
    // viewing the file in an editor with different tab width settings. This
    // will also cause multi-character operators to be left-aligned to the
    // first character in the operator instead of the character from the
    // "alignment_chars" setting.
    "mid_line_tabs": false,
    // The mid-line characters to align in a multi-line selection, changing
    // this to an empty array will disable mid-line alignment
    "alignment_chars": [
        "=", ":"
    ],
    // If the following character is matched for alignment, insert a space
    // before it in the final alignment
    "alignment_space_chars": [
        "=", ":"
    ],
    // The characters to align along with "alignment_chars"
    // For instance if the = is to be aligned, there are a number of
    // symbols that can be combined with the = to make an operator, and all
    // of those must be kept next to the = for the operator to be parsed
    "alignment_prefix_chars": [
        "+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "."
    ]
}

Git​Gutter

简介:指示代码中插入、修改、删除的地方

sublimelinter + sublimelinter-php

// SublimeLinter Settings - User
{
	"debug": false,
	"delay": 0.25,
	"paths": {
        "linux": [],
        "osx": [],
        "windows": [
        	"D:/phpStudy/PHPTutorial/php/php-7.2.1-nts",
        	"D:/phpStudy/PHPTutorial/php/php-7.1.13-nts",
        	"D:/phpStudy/PHPTutorial/php/php-7.0.12-nts",
        	"D:/phpStudy/PHPTutorial/php/php-5.6.27-nts"
        ]
    }
}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值