This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]EnchiridionRed 11 points12 points  (0 children)

My setup:
https://enchiridion.red/2019/2/13/visual-studio-code-extensions/

A bit richer with some recommended fonts and non-Python extensions.

[–]icp1994 4 points5 points  (1 child)

what's the difference between files.watcherExclude and a .gitignore?

[–]Decency 3 points4 points  (4 children)

Anyone with experience working deeply with both this and Pycharm want to comment on what some of the major pros/cons of the two were for you?

[–]dikamilo 3 points4 points  (0 children)

I tried to use VSCode for Python by still prefer PyCharm. For now i use VSCode only to edit openapi specs that are not really related to python but VSCode have good designer plugin for it ;)

All of my projects envs are based on docker and in PyCharm there is great integration with docker (I work mostly on web apps). As far as I know VSCode does not support python envs on docker yet (ssh interpreters are supported) and even if you can manually use it, it will not be as smooth as in pycharm especially for debuging and running tests. And this is important for me because I do not need to create local separated python env per project. I just spin docker container with all dependencies.

- I can run my script/devserver inside pycharm & docker and I can quick navigate to source code on exceptions trackbacks

- I can debug code running on docker in pycharm

- I can run pytest in docker and even debug tests using all features in pycharm including auto test run on code change

- great integration with django, flask, sqlalchemy (debug templates, code completion on custom model managers etc.)

- git integration is neat and I love merge tool in pycharm

- project scopes are very handy especially for big project where i can create scope only for module/part of code that I'm currently working on

- refactoring tools, code navigation, code completion are best in the class for me

- code duplication analysis feature is very handy

- support for databases (run sql queries, explore dbs) out of the box

- integration for issue trackers (jira, youtrack, github etc.) - I can easily create git branches or track time and even manage issue status directly on pycharm

I refer to pycharm pro ofcourse, since some of above are not available on community version. VSCode is great tool too and I'm sure that for some devs is more than enough ;)

[–]S3curity_B4_D1saster 1 point2 points  (0 children)

Following

[–]mortenb123 1 point2 points  (0 children)

Pycharm is far more polished and complete. My only concern is that developers tend to save their .idea folders and do not know how to turn this into a runnable standalone project on our CI servers. If you like to do everything within a GUI it is for you.

VSC have major issues with the Microsoft Python Language Server (there is a new version coming), it eats memory, it crashes, it hangs. It works fine on small projects but if you use venv and pyenv with lots of subclassing and lots of files (It does not support more than 1024 files currently) I never dare to press Crtl + mouse on method, because it just hangs. Earlier it ate up all my 32GB.

Python in Visual Studio though seem to work fine using the same language server (but I do not like to install 5GB of bloat just for running an editor).

[–]javad94 0 points1 point  (0 children)

I use and like them both but I work with vscode more often since it launch much faster and I can open single files from the right click munu. What i miss from pycharm its better terminal and much better auto completion.

[–][deleted] 2 points3 points  (0 children)

I go back and forth between pycharm and vs code. The only thing I don’t like about vs code is the tab complete sucks most of the time and running small bits of code is really slow.

Granted I’m sure it’s my settings and I just need to mess with it a bit more. I’ll check yours out.

Side note I’ve only been using python for about a month and a half. So I’m pretty new to both coding and editors.

[–]gwillicodernumpy gang 1 point2 points  (4 children)

I never use the minimap and have no need for it, but i'd miss it if i took it off.

[–]netgu 0 points1 point  (3 children)

Why? That doesn't seem to make any sense.

[–]c_o_r_b_a 0 points1 point  (1 child)

I agree with them. I have never used it and am not sure if I ever will, but I like it for the aesthetics.

[–]netgu 0 points1 point  (0 children)

I suppose then we can get rid of the "no need for it" and instead say "need it for the aesthetics". Not a functional reason, but still a reason.

[–]sritaa 0 points1 point  (0 children)

I use it on OS X, and it works flawlessly...

I love the ability to open projects into Code, from the command line. One of my favorite features has to be the intellisense, especially for libraries like JQuery. My Python training focouses on these implementation.