Re:Turning Sublime Text into a Lightweight Python IDE
by philsheard on Wednesday May 10, 2017 @05:19AM
(#14306916)
My biggest problem with VSCode was the loss of ST's support for working across multiple project folders. When I'm working with Django I'll break code out into reusable apps but find it difficult to work concurrently on these separate folders of code.
Would love to hear if there's a setting I was missing as I'd like all the other features in VSC.
Re:Turning Sublime Text into a Lightweight Python IDE
by dchest on Wednesday May 10, 2017 @08:15AM
(#14307565)
I have each project open in a different VSCode — is that what you're asking for? You can do File > New Window and then open another project in it or just set "window.openFoldersInNewWindow": "on" to always open directories in a new window.
Re:Turning Sublime Text into a Lightweight Python IDE
by jsmeaton on Wednesday May 10, 2017 @08:28AM
(#14307620)
My only issue with vscode and the python plugin is the debugger. It's completely broken for django projects even if you can manage to figure out the special incantations from piecing together information from the wiki and 5 or 6 issues (some closed) in the repo.
For those interested:
* expose the right port (if remote debugging)
* install ptvsd into the virtualenv
* ptvsd.enable_attach(..) # in manage.py
* ptvsd.wait_for_attach() # in manage.py
* run the debug server in single threaded mode
* run the debug server with noreload
PyCharm debugging is really top notch, but I don't like the editing experience nearly as much as in sublime or vscode. The keybindings and shortcuts feel so much better in vscode that I'd rather use ipdb in a terminal when I need to debug.
But the best IDE experience (beside PyCharm) is really using VSCode + the most popular Python extension https://github.com/DonJayamanne/pythonVSCode
This setup is a total replacement for PyCharm for me. Code Refactoring, code definition jump, IntelliSense suggestions and help, linting, virtualenv support, code formatting etc. etc.
And last but not least VSCode and this extension are both free, open source... unlike Sublime and PyCharm.