日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

ubuntu18 下配置sublime text3 (python編碼環境)

系統 1696 0

1 下載sublimetext3 (不要下載最新版Version:?Build 3207 不好找licence)

https://www.unyoo.com/2320.html(參考這個,需要指定版本windows或mac的可以看這個)

https://download.sublimetext.com/sublime_text_3_build_3200_x64.tar.bz2 (我用的是這個版本)

放到ubuntu里面,解壓

tar -xvf sublime_text_3_build_3200_x64.tar

?

配置subl啟動sublime

sudo ln -s /code/sublime_text_3/sublime_text /usr/bin/subl

?

配置sublime

1 輸入license

修改hosts:

vi /etc/hosts 添加下面兩行

            
              127.0.0.1 www.sublimetext.com 

127.0.0.1 license.sublimehq.com
            
          

在sublime上輸入license

            
              — BEGIN LICENSE —–
ZYNGA INC.
50 User License
EA7E-811825
927BA117 84C9300F 4A0CCBC4 34A56B44
985E4562 59F2B63B CCCFF92F 0E646B83
0FD6487D 1507AE29 9CC4F9F5 0A6F32E3
0343D868 C18E2CD5 27641A71 25475648
309705B3 E468DDC4 1B766A18 7952D28C
E627DDBA 960A2153 69A2D98A C87C0607
45DC6049 8C04EC29 D18DFA40 442C680B
1342224D 44D90641 33A3B9F2 46AADB8F
—— END LICENSE ——
            
          

?

?

安裝 Package Control

?

安裝好后退出重啟

ctrl + shift + p 調出Package Control 窗口 輸入install 并選中install package

?

?

安裝以下幾個插件:

?

?

安裝庫(根據自己所需,我使用的是國內的阿里鏡像):

            
              pip3 install flake8 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip3 install pandas -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip3 install scipy -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip3 install numpy -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip3 install pytest -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip3 install aiohttp -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip3 install hyper -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
            
          

?

配置sublime插件

代碼檢查:sublimelinter

看到如上圖所示時,把左邊的配置全部拷貝到右邊的配置里并把開頭的default更改為user

然后把配置中 "mark_style": "outline",更改為:"mark_style":“squiggly underline”

?

代碼自動補全功能 anaconda

            
              {
	"pep8": false,
    "python_interpreter": "/usr/bin/python3",
    "supress_word_completions": true,
    "supress_explicit_completions": true,
    // "complete_parameters": true,
    "anaconda_linting": false
}
            
          

?

配置取消自動升級,tab鍵自動轉換4個空格等

            
              {
	"tab_size": 4, 
	"translate_tabs_to_spaces": true, 


	"color_scheme": "Packages/Theme - Brogrammer/brogrammer.tmTheme",
	"font_size": 13,
	"ignored_packages":
	[
		"Vintage"
	],
	"theme": "Brogrammer.sublime-theme",
	"update_check": false
}
            
          

?

運行REPL 配置 F5 運行 F1 顯示交互模式CMD ALT+B停止運行

輸入:

            
              [
{"keys":["f1"],
"caption": "SublimeREPL: Python",
"command": "run_existing_window_command", "args":
{"id": "repl_python",
"file": "config/Python/Main.sublime-menu"}}
,
{"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"}}
,
{ "keys": ["alt+b"], "command": "exec", "args": {"kill": true} }
]
            
          

?

修改:sublime flake8 line too long錯誤提示修改

找到python的安裝路徑,C:\..\Python36\Lib\site-packages\flake8文件夾下,用記事本打開defaults.py,查找“MAX_LINE_LENGTH” 修改成155或其他

?

?

?

然后就可以愉快的寫代碼了(感受下)

?

?

?

?

參考:

https://blog.csdn.net/Qton_CSDN/article/details/70176106

https://www.unyoo.com/2320.html

https://gist.github.com/tarikmanoar/1956ef3191e1ea43c3982cd61bc75e07

https://www.cnblogs.com/zhaof/p/8126306.html

https://blog.csdn.net/qq_27366789/article/details/80666343

https://blog.csdn.net/david_xtd/article/details/78839858

https://blog.csdn.net/weixin_33738578/article/details/93453267

?


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦?。?!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 利辛县| 中山市| 庆阳市| 宜兰县| 沂南县| 紫金县| 电白县| 汝州市| 扎鲁特旗| 佛冈县| 高阳县| 色达县| 肥西县| 广元市| 延寿县| 赣州市| 潜山县| 宁陕县| 乌拉特中旗| 仪征市| 高安市| 平谷区| 繁峙县| 溧水县| 高青县| 安丘市| 长汀县| 遂宁市| 特克斯县| 广西| 米泉市| 顺昌县| 连城县| 韩城市| 北票市| 育儿| 新化县| 普兰县| 潮安县| 雷波县| 什邡市|