vscode 可以在左下角下拉框中选择使用哪个 Python 解释器,,非常方便、快捷
请问 Sublime 有没有类似的功能
1
jfcherng 2019-11-13 13:46:02 +08:00
你是說 console 裡的 python 解釋器?還是 build 的?
conosle 的話沒得選,ST 3 只有 python 3.3,ST 4 可以用 3.8。 build 的話可以寫 variants,見 https://www.sublimetext.com/docs/3/build_systems.html#options。 |
2
jfcherng 2019-11-13 13:46:28 +08:00
最後的句號被識別為 URL 了...
|
3
XIVN1987 OP |
4
jfcherng 2019-11-13 14:23:11 +08:00
|
5
XIVN1987 OP 给 SublimeJEDI 添加了快速 Python 切换功能,已 Pull,希望能合并
https://github.com/srusskih/SublimeJEDI/pull/305 具体用法如下: ### Quick Select/Switch Python Specify python interpreters used now and avaliabe ```json // User/sublime_jedi.sublime-settings { "python_interpreter": "D:/Python36/python.exe", "python_interpreters": [ "D:/Python27/python.exe", "D:/Python36/python.exe", "D:/Python27/venv/Scripts/python.exe", "D:/Python27/vexe/Scripts/python.exe", "D:/Python36/venv/Scripts/python.exe", "D:/Python36/vexe/Scripts/python.exe", "D:/Python36/vweb/Scripts/python.exe" ] } ``` And then, you can quick select/switch python by input 'SublimeJedi: Select Python' in command palette When a python file is opened or activated, the python interpreter used by JEDI will show on statusbar |