Sublime Text 3 装了Anaconda 写Python代码出现框框的解决办法
2017-12-23 21:47
501 查看
Sublime Text 3代码提示插件Anaconda下载:http://damnwidget.github.io/anaconda/#carousel-features
安装后写代码出现白框:
光标移到白框行,下方状态栏里可以看到错误信息:
可见原因是代码不符合PEP 8 规范。规范摘要见:http://blog.sae.sina.com.cn/archives/4781
解决方法有两个:
一是直接关闭Anaconda的这项提示,Sublime > Preferences > Package Settings > Anaconda > Settings User 中添加如下代码:
二是安装格式化插件Python PEP8 Autoformat,快捷键Ctrl+Shift+R。下载:https://bitbucket.org/StephaneBunel/pythonpep8autoformat
安装后写代码出现白框:
光标移到白框行,下方状态栏里可以看到错误信息:
可见原因是代码不符合PEP 8 规范。规范摘要见:http://blog.sae.sina.com.cn/archives/4781
解决方法有两个:
一是直接关闭Anaconda的这项提示,Sublime > Preferences > Package Settings > Anaconda > Settings User 中添加如下代码:
{"anaconda_linting": false}
二是安装格式化插件Python PEP8 Autoformat,快捷键Ctrl+Shift+R。下载:https://bitbucket.org/StephaneBunel/pythonpep8autoformat
相关文章推荐
- Sublime Text 3 装了Anaconda 写Python代码出现框框的解决办法
- 使用sublime书写python代码时出现矩形框解决办法
- anaconda2下安装psycopg2出现python 2.7 required not found in registry解决办法
- Sublime text 3编辑python时出现方框的解决办法
- Sublime text 3编辑python时出现方框的解决办法
- 使用python中出现的错误及解决办法
- python3.x+windows下pip install 出现unable to find vcvasall.bat 的解决办法
- SubLime Text3 Python不能输出中文的解决办法
- sublime text在Linux下build出现'ascii' codec can't decode byte 0xe4 in position 0的解决办法
- 出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*解决办法
- mysql Access denied for user \'root\'@\'localhost\'”解决办法总结,下面我们对常见的出现的一些错误代码进行分析并给出解决办法,有需要的朋友可参考一下。
- python2 安装scrapy出现错误提示解决办法~
- Sublime text 3 出现中文文件名出现方框的解决办法
- vc++6.0调试 出现汇编代码的解决办法
- 使用google code时commit代码出现不能连接的情况解决办法
- android项目代码混淆时ksoap包出现错误的解决办法
- Android代码修改出现error opening trace file: No such file or directory (2)解决办法之一
- win10升级出现蓝屏错误代码0x00000133的详细解决办法
- 【Python小白】向PyPI上传代码出现问题,报401或者410如何解决(主要是上传的URL不正确)!
- ksoap2 代码混淆时出现duplicate definition of library class [org.xmlpull.v1.**的解决办法