Sublime Plugin Details

Sublime plugin

First, the installation of plug-ins

There are two ways to install:

1. Put the plug-in directly into the corresponding file package of its installation path. If you don't know where it is, you can directly open the preferences->Browse packages. After putting it in, the software will automatically detect it.

2. Use the command method to directly let the software download and install by itself. (using the package control component) (premise: install the following package control plugin first)

Press Ctrl+Shift+P to bring up the command panel, enter install, bring up the Install Package option and press Enter, then select the plugin to be installed in the list.

Download a copy: then put it in the package file package. Friends who have never used Github do not know where to download. Download ZIP. Then unzip it, put the folder into the package file package, and it can detect the package!

Code installation: Ctrl+shift+p, enter install, select package install After a few seconds, another box will pop up. Then enter the plugin keyword you want in the input box to install it! That's about it, plain and simple. The following introduces other commonly used plug-ins, and the installation method is the same!

2. Common plugins:

  • package control
    • Open the console via the shortcut key ctrl+` or the View > Show Console menu, then paste the corresponding version code into it, and press Enter to install it.

For Sublime Text 3:

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())  *

For Sublime Text 2:

import  urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();  * os.makedirs(ipp)ifnotos.path.exists(ipp)elseNone;urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())  * );open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())  * ;print('Please restart Sublime Text to finish installation')

Of course, sometimes if you can't install it, you can only download the installation package and put it in the package file (that is, the folder I mentioned above). If you see Package Control in Preferences → Package Settings One item, indicating that the installation was successful.

Second, the plug-in organization

1. Code finishing:

 

2、代码简写:

输入 div.wrapper>div.header+div.main+div.footer 按下Tab,立刻变成

或者按下ctrl+alt+enter,激发zencoding控制台,可看到整个动态的过程。

 

 

 

3、高亮显示:

4、文档管理:

  • Terminal
    • 当你想要打开在当前文件所在的目录的终端,这个插件可以帮助你。不过,在默认情况下,它设置按 Ctrl / Cmd + Shift + T 键的快捷方式打开终端。不过这也是打开上次关闭的文件的快捷方式,你需要修改一个快捷键来兼容两个功能
  • SublimeTmpl (自定义新建文件)
    • 默认已经添加了html、css、js等常见类型的面板,按ctrl+alt+h/ctrl+alt+c/ctrl+alt+j可新建这 3钟类型的文件,快捷键在这里\Packages\SublimeTmpl\Default (Windows).sublime-keymap, 模板文件在这里\Packages\SublimeTmpl\templates,可修改。 比如下边简单的html文件
  • DocBlockr(代码建立文档)
    • DocBlockr 可以使你很方便地对代码建立文档。它会解析函数,变量,和参数,根据它们自动生成文档范式,你的工作就是去填充对应的说明。
  • GotoRecent(历史文档记录)
    • 打开最近的文件,系统有这个功能,但只能看最近8个,有点不爽,按ctrl+e,选择即可。

       

5、语法识别:

6、文件传输:

7、其他:

 

2、Soda

 

SublimeREPL

这可能是对程序员最有用的插件。SublimeREPL 允许你在 Sublime Texxt 中运行各种语言(NodeJS , Python,Ruby, Scala 和 Haskell 等等)

 

ColorPicker

通常,如果你想使用一个颜色选择器则可能打开 Photoshop 或 GIMP。而在 Sublime Text 中,你可以使用内置的颜色选择器。安装完成后,只要按下Ctrl / Cmd + Shift + C 快捷键。

 

MarkdownPreview

虽然许多开发人员更喜欢在云端(GitHub Gists,StackEdit,Markable)创建 Markdown 文件 。不过另外一些喜欢在本地编写 Markdown 文件的开发者, MarkdownPreview 很有用,可以预览文件,还有颜色高亮显示

 

DocBlockr

如果你遵循的编码的风格很严格,这款插件能够使你的任务更容易。DocBlokr 帮助你创造你的代码注释,通过解析功能,参数,变量,并且自动添加基本项目

 

文/世平阜康(简书作者)
原文链接:http://www.jianshu.com/p/f0e311490c4d
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326696631&siteId=291194637