by cik · 8y ago · 0 comments
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 see if the plugin cache needs an update one way or the other - and runs my aliases (see below).
I have global tasks that now link into workspaces, pretty decent python, golang, and c++ support. I've mapped keys to the 'wierd' collection of things I do between terminator terminals, vim tabs, and whatnot... honestly, it's pretty good. It's not great, the things in 'vim' support are really 'vi'-light. I'd be much happier if vim support meant understanding my .vim hierarchy - but I'm happy.
# vscode bash bits alias vspluginsave="code --list-extensions | xargs -L 1 echo code --install-extension > .vscode.plugins" alias vspluginload="sh ~/.vscode.plugins" alias vspluginclean="rm -rf ~/.vscode/extensions"
I currently use intellij for java work (because my employer pays for the license) but for most any other type of editing I use emacs. I'd be interested to see what other emacs users think of vscode.
As an editor, VSCode is still inferior (but improving at lightspeed). As an out-of-the-box experience, it blows almost everything else out of the water. Against my customized Spacemacs, it's still struggling.
But that renderer is gorgeous!
But I started to use it more because the autocompletion is nice. It's not perfect, but out-of-the-box experience is nicer.
After a few months though working in it, I want to go back to Emacs, and as such, Emacs is usually running. Magit for example, or being able to split your screen up as needed, or quickly jumping between files, etc. is something that is burnt into my brain. VScode is terrible at these things.
I am watching the lsp-mode and lsp-ui projects. They seem promising because it answers a concern I have : I need to float between projects in different languages and want the typical set of IDE-like features in each one. It would be nice to have a single set of keybindings regardless of language, which vscode excels at now. VScode has a good debugging story out-of-the-box lsp-ui is promising because it is implementing vscode-like features (like peek mode).
I am expecting to slowly move out of emacs for my coding in the next few months.
Emacs will be kept because I have a lot of org-mode files to manage my company at a higher level (lot of tables with formulas to calculate several key indicators). On the longer term, they could be moved as Python notebooks with the rendering in VS Code.
So yes, I do think this is the editor which is going to move a lot of old coders out of emacs/vi/vim.
PS: The added bonus is that I easily get support of Go, Typescript, etc. without the need to "debug my editor". Just install the right extension, done.
That certainly seems a possibility, though I expect it may be somewhat dependent upon the language used, and whether the community around that language invests enough effort to develop vscode plugins for that language.
I can't even tell you how hard that was with VIM.
One reason is that I kind of like the separation between Emacs for org-mode and another tool for development.
Another is that VSCode just kind of 'clicks' with my approach. As a freelancer, I often work on multiple projects at the same time. I can have various VSCode projects open, each with its own terminal processes.
I find myself still using Emacs for TRAMP stuff (remote SFTP editing of files) occasionally, but somehow using Emacs for properly working on projects never quite 'clicked' the way VSCode did. It's possible that I just haven't gotten comfortable enough with it yet, but so far I'm really loving the Emacs/VSCode setup. And I still occasionally use Sublime Text for one-off editing of bigger files.
Switch from vim to emacs is obvious. Switch from emacs to sublime was triggered by moving from Linux to MacOS (my Thinkpad was failing after diving in a tropical rain so I bought a brand new MacBook).
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
code --install-extension batisteo.vscode-django
code --install-extension bibhasdn.django-html
code --install-extension Compulim.compulim-vscode-closetag
code --install-extension donjayamanne.jupyter
code --install-extension donjayamanne.python-extension-pack
code --install-extension DotJoshJohnson.xml
code --install-extension ecmel.vscode-html-css
code --install-extension formulahendry.code-runner
code --install-extension formulahendry.terminal
code --install-extension ginfuru.ginfuru-better-solarized-dark-theme
code --install-extension Gruntfuggly.global-config
code --install-extension haaaad.ansible
code --install-extension himanoa.Python-autopep8
code --install-extension HookyQR.beautify
code --install-extension humao.rest-client
code --install-extension magicstack.MagicPython
code --install-extension mauve.terraform
code --install-extension ms-python.python
code --install-extension PeterJausovec.vscode-docker
code --install-extension tushortz.python-extended-snippets
code --install-extension VisualStudioExptTeam.vscodeintellicode
code --install-extension vscodevim.vim
code --install-extension vscoss.vscode-ansible
code --install-extension wholroyd.jinja
code --install-extension Zignd.html-css-class-completion
You can also have it use neovim as the backend as well: https://marketplace.visualstudio.com/items?itemName=vscodevi...
I've also JetBeans'd (2001-2003) with varying success, and have been trying PyCharm on and off since 2014, just due to the promise. They're not there - or at least not enough.
JetBeans constant need to move my profiles around (literally they change per version) has made my strategy of having revision control sync things throughout a nightmare. Also, due to some files being binary - I just couldn't.
VSCode - and especially now that I have the global tasks plugin has simply blown my mind. Every (python django) repository I have has a wrapper script, as part of my tooling - I simply have vscode call that. Now, I have several commands I used to jump to a terminal for, run within code, in a collapsed terminal. It's great. My #1 use for that is a profiler and runserver. In dev, I always, always want them running.
It's much the same for other languages - and my environment.
Wow. Everything actually "just worked". Python had perfect syntax highlighting out of the box. It noticed that I had pylint installed and started using it. It was trivially easy to set up per-workspace virtualenvs. Its git plugin certainly isn't the awesomeness that is Emacs's magit, but it's totally sufficient for normal day-to-day workflows.
It's now been a couple of months since I fired up Emacs at all, and now most of my coworkers have also switched to VSCode (yay for making it easy to share settings among coworkers within a project!). I am far, far from an MS fanboy, but they hit this one out of the park. Well done, team.
One thing I forsee being a problem is that one of my projects is a side project, that I usually work on from the couch at home, using my chromebook sshed into a box running vim. So, I can't run vscode in that environment. No biggie though, I can drop to vim for that.
[0] https://marketplace.visualstudio.com/items?itemName=Kelvin.v...
There's one thing I wish I could figure out (I haven't really put that much work into it, so I'm sure there's a fix): is there a way to bind "<<" to "move text left without losing the current selection"?
I've never found a real use for them, so I want to know what other people use them for.
But the idea is that I can than wrap django's manage.py to collect just the commands we write, do something similar for make targets, and selected other things - so that I can just continue working and check on the task later.
In my mind, almost anything other than linting, debugging, profiling, and deploying shouldn't need to interrupt my flow.
Most vim users chose it because they're borderline anti-IDEs, it's really strange to me that you chose to switch for features that a vim+tmux workflow already offers.