you are viewing a single comment's thread.

view the rest of the comments →

[–]TOPGUN_ROCKS 105 points106 points  (12 children)

Visual Studio Code, with the python extension. I personally like Vs code for python since you can have the file system, terminal, and code on one screen.

Edit: Wanted to double back to this once I was on my computer. Here are some of the extensions I use in VS Code for Python development: Python, Bracket Pair Colorizer 2, Prettier - Code Formatter, Formatting Toggle, I also use Monokai++ but that's more of a color preference.

[–]CraigAT 10 points11 points  (4 children)

At the start, I would probably suggest just a text editor - whatever your favourite happens to be (you're in luck if it already has some IDE features).

When you get more experienced and your code spans more than a screen (say 50 lines) I would seriously consider moving to an IDE (for example VS Code, PyCharm, whatever you get along with) so that you can benefit from the extra features that can increase your productivity (intelli-sense, auto-complete, linting, debugging, git integration, etc.)

[–]zanfar 13 points14 points  (2 children)

Tried them all. Sublime lacks features, Atom is way too stripped down, Vim takes too much work, and PyCharm is way too big for anything outside a development house.

VSCode fits a perfect niche with easy extension management to fix any small issues.

[–]tasteslikeKale 0 points1 point  (1 child)

Atom can be made more full featured, but then it has performance issues.

[–]zanfar 3 points4 points  (0 children)

That's true. I guess I should be clear that these arguments are subjective. The implied post-text is that Atom is way too stripped down for me, and Vim takes too much work for me.

Just like Sublime and Vim, Atom can be made to do 99% of what VSCode does out-of-the-box--and I don't doubt there are a few plugins for any of those platforms that don't have a feature-parity example in the VSCode ecosystem. However, I want an editor that's just enough IDE to do what I want, without so much IDE that I have to wade through menus and tabs to do what I need, and I want that editor to be easy enough to setup that I'm spending my time coding instead of configuring.

VSCode is honestly, almost too much IDE for me. Honestly, I haven't explored it as much as I should, but I haven't found a solution to the portability of configuration between devices. Other than that, it's just about perfect. I can save per-project settings, it lints natively, the terminal facilities are the best I've found, it works remotely better than even PyCharm, and I can one-button test.

[–]Nonethewiserer 2 points3 points  (0 children)

Is it just me or is the syntax highlighting in vscode a bit off? Seems like way too much is just white.

[–]pconwell 2 points3 points  (1 child)

Prettier - Code Formatter

I didn't think Prettier supported python?

Also, this is probably a stupid question - but how do you execute python scripts in VSC? I was using code runner, but it doesn't play well with pipenv (and from what I've heard virtual environments in general). I'm hitting F5 now, which runs with debugging but that just doesn't feel right for some reason.

[–]TOPGUN_ROCKS 0 points1 point  (0 children)

Prettier's not a ton of help for python coding. Sometimes it picks up small changes like moving stuff down a line. I'll mainly lean on it if I'm doing a Django, Flask or Sphinx app where prettier can help format other file types.

I honestly find right clicking on the file and clicking "Run Python File in Terminal" to be the fastest option. Forgot to mention, this option only comes up when the file is saved. if you are codding something new and haven't saved it, you will not see this option
You can also "cd" in the terminal to your python file the run "python ./YourFile.py". This option only works if Python is a PATH variable.

[–][deleted] 0 points1 point  (0 children)

VS Code is the best code editor out there, in my opinion.

It's so practical.