回复内容:
anaconda
也不错
自动补齐部分和SumlimeJEDI一样,也使用了jedi。
CodeIntel:自动补全+成员/方法提示(强烈推荐)
SublimeREPL:用于运行和调试一些需要交互的程序(E.G. 使用了Input()的程序)
Bracket Highlighter:括号匹配及高亮
SublimeLinter:代码pep8格式检查
正常来说,command+B 运行python 程序的时候,有raw_input() 的时候Sublime会报错,
SublimeREPL 可以通过Python-Run current file来实现,而且这个也可以定义快捷键:
具体看我百度空间:
【我的Python 笔记
】
强烈推荐SumlimeJEDI插件,代码补全智能感知超级好用
https://github.com/srusskih/SublimeJEDI
目前我安装了以下几个,andypython, Python标准库帮助提示插件 ,就是当你不知道怎么写的时候,提供用法
sublimelinter
,sublimerope, 智能代码插件
Anaconda不多说
试过几个sublime直接运行python的插件,都不理想然后自己写了个小玩意
<code class="language-python"><span class="c">#-*-coding:utf-8-*-</span>
<span class="kn">import</span> <span class="nn">sublime</span><span class="o">,</span> <span class="nn">sublime_plugin</span><span class="o">,</span> <span class="nn">os</span>
<span class="k">class</span> <span class="nc">PythonrunCommand</span><span class="p">(</span><span class="n">sublime_plugin</span><span class="o">.</span><span class="n">TextCommand</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">edit</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">view</span><span class="o">.</span><span class="n">run_command</span><span class="p">(</span><span class="s">"save"</span><span class="p">)</span>
<span class="n">cmd</span> <span class="o">=</span> <span class="s">"@echo off & python "</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">view</span><span class="o">.</span><span class="n">file_name</span><span class="p">()</span><span class="o">.</span><span class="n">encode</span><span class="p">(</span><span class="s">'gb2312'</span><span class="p">)</span> <span class="o">+</span> <span class="s">" & pause"</span>
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="n">cmd</span><span class="p">)</span>
</code>
GitGutter 类似git的diff效果,在修改和新加行左侧做个标记