主页:http://www.sublimetext.com
跨平台:windows / Linux / Mac OS
插件采用python语言开发,虽然比起神器emacs/vim还略有不足,不过目前主程序和插件开发进展很快,目前已经足以作为一个强大的脚本开发 / Web开发 IDE 。
插件包控制 Sublime Package Control
Ctrl+` Sublime Text 2 console
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
Python IDE 推荐插件
1. 代码导航 Sublime CodeIntel
Sublime Code Intel 插件提供代码补全与函数跳转功能。
Code intelligence plugin ported from Open Komodo Editor to the Sublime Text 2 editor.
Supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2): PHP, Python, RHTML, JavaScript, Smarty, Mason, Node.js, XBL, Tcl, HTML, HTML5, TemplateToolkit, XUL, Django, Perl, Ruby, Python3.
Provides the following features:
- Jump to Symbol Definition - Jump to the file and line of the definition of a symbol.
- Imports autocomplete - Shows autocomplete with the available modules/symbols in real time.
- Function Call tooltips - Displays information in the status bar about the working function.
Plugin should work in all three platforms (MacOS X, Windows and Linux).
https://github.com/Kronuz/SublimeCodeIntel
Package Control 直接安装。
Python Completion and GotoDefinition plugin using Rope
2. 代码检查 Python PEP-8 and PyFlakes checker
This project is a plugin for SublimeText 2 text editor. It checks all python files you opening and editing through two popular Python checkers - pep8 and PyFlakes.
Package Control Add URL https://github.com/vorushin/sublimetext_python_checker
代码中使用个某个函数却忘记import 相应模块怎么办?python 中的模块 mr.igor 可以自动添加 import 语句。这个 Sublime Text 2 插件可以让它在 Sublime Text 2 工作。
Package Control Add URL https://github.com/optilude/SublimeTextIgorPlugi
3. 调试 Python Debugger
Use "F7" / "shift+F7" to insert/remove ipdb.set_trace() statements on current line. Takes into consideration indentation and tab preference. Enter as many ipdb.set_trace() commands as you like. Only one import statement is ever used. "shift+f7" will remove all debug statements.
Dependencies
* Ipython -- `pip install ipython`
* ipdb -- `pip install ipdb`
Package Control Add URL https://github.com/fxdgear/Sublime-Plugins
4. Others
CTags 经典,不用多说,package control 直接安装
EncodingHelper 编码转换,package control 直接安装
SFTP 远程开发,package control 直接安装
删除行尾空白 https://github.com/SublimeText/TrailingSpaces
高亮当前词 https://github.com/SublimeText/WordHighlight
一个漂亮的主题:https://github.com/buymeasoda/soda-theme/
C/C++
clang (C/C++/Objective-C/Objective-C++) autocomplete http://github.com/quarnster/SublimeClang
SublimeGDB https://github.com/quarnster/SublimeGDB
Tips
1. vim模式
Preferences/Global Settings – Default
"ignored_packages": ["Vintage"] --> "ignored_packages": []
or try this plugin: https://github.com/SublimeText/VintageEx
2. 设置字体
Preferences > File Settings – User
{
"font_face": "Meslo LG S DZ",
"font_size": 10,
}
3. Fuzzy Finder (Go to Anything)
CTRL+P (fuzzy finder)
4. Multi Selection: awesome
按住Ctrl,选择吧
0 评论:
发表评论