Live data from Hacker News

Python in Visual Studio Code

blogs.msdn.microsoft.com

71–80 of 202 posts

Re: Python in Visual Studio Code

#71
post #40

I prefer Atom, but I’ve started having a weird memory leak issue in version 1.29 that prevented me from using it further (note: I’ve disabled all extensions and the problem persists). I use Ubuntu. I’m using VSCode now and it’s good, but I do intend to return to Atom when I get some time to properly create an issue for this problem in GitHub and help the team to fix it.

Since Atom is now owned by Microsoft I am wondering what is going to happen with Atom. Does it get better or does it get cut lose into a "community" project?

Re: Python in Visual Studio Code

#72
post #13
post #4

I am somewhat embarrassed, but also relieved to admit that I switched from vim (nvim to be precise) to VSCode (OMG M$FT!) and am very happy about it. I still use vim bindings as much as I can, but I guess giving up a bit of ideology can benefit one a lot. Although, that is until I start running out of memory on my personal laptop, then it's back to the terminal!

> can benefit one a lot. What are those benefits? I tried to switch from vim to VSCode, and it just felt like it confined me. To be fair, I don't "run vim", per say, I run a shell with tmux inside, split horizontally in two, with vim on top, and two shells (a vertical split) underneath. The left shell on the bottom being used for miscellaneous things, and the right one running some kind of live code checking (with vi…

I could never get used to NERDTree for navigating through my project. What plugin do you use for project navigation?

Re: Python in Visual Studio Code

#73

What I'm hoping for, for all langauges and runtimes, is some global opt-in to WSL. If I have node or python installed on WSL, I would love it if the Windows version of VSCode could act as if it were the Linux version.

Not a Windows users but curious about WSL - could you run Linux VSCode under WSL?

Re: Python in Visual Studio Code

#74
post #24

I've been using VI since the 90's and VIM since... well the 90's. VSCode is the first IDE I've been able to live, and happily. It blows my mind. I have a tonne of tooling around automated python environments, vim plugins (now vscode plugins), tasks - and it's made the whole thing significantly more 'unixy' than it was before. And to think - MSFT! I have git hooks for my homedir's dotfiles that automatically look to s…

What vim plugin(s) do you use? I remember installing one but the emulation did not quite work for jumping into code definitions and back (it'd jump, but going back wouldn't work correctly), so I moved back to pycharm for the time being (vim emulation worked better there for me).

I use this: https://marketplace.visualstudio.com/items?itemName=vscodevi...

You can also have it use neovim as the backend as well: https://marketplace.visualstudio.com/items?itemName=vscodevi...

Re: Python in Visual Studio Code

#75
post #64

Crazy question: Since Microsoft bought GitHub, would it make sense to merge VSCode and Atom at some point, keeping the best of each one?

What's the best of Atom?

I find a lot of the keybindings and default settings to be more intuitive in Atom over VSCode. It's also extremely easy to extend via JavaScript.

Re: Python in Visual Studio Code

#76
post #25
post #12

Earlier quoted context omitted.

I would really love to ditch more of my nvim setup for vscode, but this bug [1] from 3 months ago absolutely wrecks my productivity. I rely on splits as the primary means to navigate the codebase and having a single cursor position per file is maddening! The vim bindings aren't perfect and are sometimes slow (you can see a macro insert things character by character) but about on-par with IdeaVim for the IntelliJ side…

Yeah VSCode for Vim feels like they are slowly trying to implement a subset for VSCode. This kind of iterative approach doesn't strike me as a way to build something that will finally "feel right", and overcome these limitations. Perhaps some remote vim running actual nvim code with a minimal API bridge into VSCode is more appropriate?

sounds like https://www.onivim.io/ to me

Re: Python in Visual Studio Code

#77
post #51
post #23

Tried to use python within vscode last month, it works fine, but I still have to hack around for my own workflow. I eventually switched to pycharm for its autocompletion, class help, even pipenv support natively built-in. for html/css/js I keep using vscode though. there is no such thing called universal editor, I still have to use various(vim,geany,vscode,pycharm...) for different scenarios, which is fine but just v…

I've been trying to get into VSCode for Python development, especially Django since the first official release of VSCode, every time I returned to PyCharm. I just decided to accept PyCharm the only IDE that can make me productive and go fast!

I had a similar experience. What are you missing?

Re: Python in Visual Studio Code

#78
post #24

I've been using VI since the 90's and VIM since... well the 90's. VSCode is the first IDE I've been able to live, and happily. It blows my mind. I have a tonne of tooling around automated python environments, vim plugins (now vscode plugins), tasks - and it's made the whole thing significantly more 'unixy' than it was before. And to think - MSFT! I have git hooks for my homedir's dotfiles that automatically look to s…

What vim plugin(s) do you use? I remember installing one but the emulation did not quite work for jumping into code definitions and back (it'd jump, but going back wouldn't work correctly), so I moved back to pycharm for the time being (vim emulation worked better there for me).

A tonne of them, all managed by pathogen. I actually have a chunk of my bashrc that automatically reinfects my vimdir. Below are the ones I can easily grab. I also have a tonne of homebrew over the years, and a love/hate relationship with Jedi, YouCompleteMe and friends.

https://github.com/noahfrederick/vim-skeleton vim-skeleton

https://github.com/majutsushi/tagbar tagbar

https://github.com/tmhedberg/SimpylFold SimpylFold

https://github.com/nvie/vim-flake8 vim-flake8

https://github.com/kien/ctrlp.vim.git ctrlp.vim

https://github.com/hashivim/vim-terraform.git vim-terraform

https://github.com/hashivim/vim-packer.git vim-packer

https://github.com/hashivim/vim-vagrant.git vim-vagrant

git://github.com/rodjek/vim-puppet.git vim-puppet

https://github.com/fatih/vim-go.git vim-go

git://github.com/chase/vim-ansible-yaml.git

https://github.com/vim-airline/vim-airline vim-airline

https://github.com/vim-airline/vim-airline-themes vim-airline-themes

git://github.com/ekalinin/Dockerfile.vim.git Dockerfile.vim

Re: Python in Visual Studio Code

#79

I have been following this extension ever since Don Jayamanne joined Microsoft. This has grown by leaps and bounds since then and is a fantastic extension. I was a little leary when I learned they were tossing out jedi in favor of the VS Python language server. However, after playing with it for a month or so now I can tell that it's a drastic improvement over what's currently in place. If anybody from the MS team is…

The server is more tech agnostic : you can use it even if you IDE is not written in python. But the killer feature is that the protocol is the same for all languages so once you support it for one language, you gain support for all of them.

Re: Python in Visual Studio Code

#80

Is there a Python IDE that will show all the stuff that's actually in a class? E.g. if I have a class that inherits from several parent classes, some of which have identically named methods, is there a good way to see how the methods are defined in the class I'm looking at?

VS Code has an Outline view that does this: https://code.visualstudio.com/updates/v1_25#_outline-view
Post reply on HN