8 ms·
We're a 100% Go shop and everyone on my team but me uses Visual Studio Code for Go. It's really amazing. (My mind has just been so corrupted by years of vim usa
by schmichael 11y ago
We're a 100% Go shop and everyone on my team but me uses Visual Studio Code for Go. It's really amazing. (My mind has just been so corrupted by years of vim usage I'm trapped.)
It's bizarre to think my team writes in a language created by Google in an editor created by Microsoft on System76 laptops running Ubuntu. Never would have been possible in the Gates or Ballmer eras.
- jalude 11y agoI want to start using Visual Studio Code but I am waiting for a VIM emulator plugin that is "good enough" have you tried any of them?
- jamra 11y agoI tried one recently (2 months ago) and no it's not good enough. The integrated debugger via delve is absolutely great.
- Lewisham 11y agoYeah, I am not a Vim shortcut aficionado at all, but not having . be repeat command was such a deal breaker for me.
- slammers 11y agoRecent issue discussing this - https://github.com/Microsoft/vscode/issues/3600 https://github.com/Microsoft/vscode/issues/3600
- aggronn 11y agoThis is great. Its too bad there isn't a +1 button for comments in github issues, because some of them are just incredibly important to highlight. I just installed VSCode and was impressed overall and would absolutely use it, except I could never switch to an editor that didn't have basic things like this, which was mentioned in the issue thread. Numeric arguments (3dd, 2x, ...) support for combining commands (ci[, cW, ggVG, ...) visual commands Anyone who uses vim primarily lives by these features.
- slammers 11y agoGood feedback. I'm working on how we can improve the vim experience in VS Code Now that we have essentials completed (accessibility, localization) this is an important use case for us. Disclaimer: I'm on the VS Code team. Ping me on Github @waderyan or Twitter @waderyan_.
- johnnycarcin 11y agoI am playing around with https://marketplace.visualstudio.com/items?itemName=vscodevim.vim https://marketplace.visualstudio.com/items?itemName=vscodevi... It has most of the basic stuff working. I will admit that with the auto complete and what not it isn't quite like my native vim experience. I have actually been thinking about disabling it and just trying to learn the VScode short cuts.
- schmichael 11y agoWhile I'm far from a vim pro, I've never found a vim plugin that didn't frustrate me. Hence I've been stuck in vim because my brain just can't get used to non-modal editing. Just heard from a coworker after I posted this he's switching back to vim because the vim plugin for VS Code isn't quite there.
- carussell 11y agoamVim is the better of the two, but VSCodeVim is the one that seems to have the most mindshare (almost definitely because of the name and it came first). Both amVim and VSCodeVim still have problems that mean they're not drop-in replacement for even stock Vim, but most of them come down to limitations in the VSCode extension APIs at this point. https://marketplace.visualstudio.com/items?itemName=auiworks.amvim https://marketplace.visualstudio.com/items?itemName=auiworks...
- melling 11y agoCan anyone who uses Visual Studio Code compare its functionality to the native Visual Studio? I forgot about this project because it's seldom mentioned: https://code.visualstudio.com/Download https://code.visualstudio.com/Download
- zwily 11y agoIt's a completely separate project. I'm not sure there's a useful comparison between the two.
- melling 11y agoHow is it as an editor? There are already lots of popular choices: vim, Emacs, Sublime, Atom, etc. How are the plugins? Code completion, multiple cursors, AceJump, etc?
- OldSchoolJohnny 11y agoJesus, just try it dude! No one can confirm your personal preferences for you. It's literally the easiest application in the world to try out, doesn't even require installation.
- softawre 11y agoYeah. VSCode has infinitely more functionality on my macbook than VS does. :D But seriously, if you're running Windows and have a VS license, use VS. Otherwise use VSCode. VSCode is the best IDE for TypeScript. Some will point at atom, they are wrong.
- arethuza 11y agoVisual Studio 2015 Community Edition is zero cost and doesn't appear to have any obvious weaknesses (apart from being Windows only): https://www.visualstudio.com/en-us/products/compare-visual-studio-2015-products-vs.aspx https://www.visualstudio.com/en-us/products/compare-visual-s...
- mmgutz 11y agoVS.Code + the go plugin is quite good. I recommend it to my team members who prefer GUI-based editors. VS.Code is surprisingly much faster than Atom even though they share the same electron editor. I think vim + vim-go is still the best go editor if you know vim. It just works and it gets updated frequently.
- jonesb6 11y agoI use Jetbrain's IDEA with a Go plugin and it fits all my needs. Do you know how it compares to VS? Never got into VS myself and i'm hesitant to swap IDE's though I'd be willing to try if it's a significant improvement.
- themartorana 11y agoThis is my setup of choice. It's absolutely fantastic.
- mmgutz 11y agoMost go-related plugins are reaching parity in that they mostly use the same background services and utilities to update the editor. My guess is Jetbrain's IDE has roughly the same features. FWIW, VS.code starts up much faster than WebStorm on my machine.
- jonesb6 11y agoGood to know. When I switched from windows to ubuntu I saw WebStorm start-up improve 2-3x. Haven't tried VS.code yet but I've found JetBrains products to run very well on linux machines.
- adambrenecki 11y agoI've switched from PyCharm (based on the same IntelliJ Platform as IDEA) to VS Code, and it's so much faster to work with. That said, I've found that it's not nearly as good at all the code intelligence stuff as PyCharm is. I've never used IntelliJ's Go tools, but VS Code is much better at that stuff in Go than Python. (I believe it uses third-party open-source tools in both cases; code intelligence for a statically typed language like Go is probably much simpler which probably helps.) The best way to look at VS Code is as an IDE minus the 'integrated' bit - instead of having the core editor and UI bundled in with all the code intelligence stuff for a specific set of languages, it's a text editor with a code intelligence and debugger UI, that calls out to out-of-process plugins to do the heavy lifting.
- coolsunglasses 11y agoWhich System76 laptops? I'm in the market for a Linux-native laptop which'll compile faster than my MBP.
- kozukumi 11y agoNot the same person as parent but I wouldn't recommend System 76 personally. I got caught up in the hype and got a Lemur 14" but the build quality is pretty poor and I had awful keyboard issues (since fixed I believe). If you want something that runs Linux well I have stuck with ThinkPad's. You really can't beat them in terms of performance, reliability and Linux support.
- jokoon 11y agoI recently got a thinkpad L440, I chose the bad wifi chipset (I did some research first, nowhere would have had read about that issue), and that chipset is not supported. I installed some backport which seems to turn off/on at times. I don't think there are decent brands for linux, or it might require deeper pockets. That's the cost of not working with microsoft.
- kozukumi 11y agoMy main machine is still a T420s and it runs every Linux version I through at it without fail. I haven't heard any bad things about more modern T series (or W series) with Linux, not sure about the L series though sorry.
- simondedalus 11y agoThinkpenguin makes very good stuff. I don't have any experience with the current models, but in terms of build quality and bang for the buck, I think they blow System 76 away. Admittedly, I use a Thinkpad t430 and a MacBook Air myself, but if I didn't have more laptops than I knew what to do with, I'd be considering Thinkpenguin (though, I'm of the same mind as Linus Torvalds, http://www.cultofmac.com/162823/linux-creator-linus-torvalds-i-love-my-macbook-air/ http://www.cultofmac.com/162823/linux-creator-linus-torvalds... , so I'd be likely to get a refurb'd MacBook Air). Edit: link to Thinkpenguin site: https://www.thinkpenguin.com/ https://www.thinkpenguin.com/
- namelezz 11y agoFor this extension to work, you need to install several Go tools in GOPATH. How did you manage your GOPATH across multiple projects? Do you have a single GOPATH for every project or each project has its own GOPATH?
- KyleBrandt 11y agoI set my GOPATH to my home dir, and only use a single GOPATH for all projects. This way things are where you might expect relative to your home dir (If thinking in FHS (https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard). For example, executables end up in ~/bin, everything else is in ~/src. Never had any issues with this setup.
- blinkingled 11y agoGaah, I thought this will provide me with some motivation to try writing some Go code but can't even get started with installing the analysis tools - cannot find package "golang.org/x/tools/go/types". Anyway will debug that one later but if anyone has a hint, go ahead.
- lukehoban 11y agoIf the automated install of the analysis tools doesn't work, you can always just manually install them into your GOPATH. See https://github.com/Microsoft/vscode-go#tools https://github.com/Microsoft/vscode-go#tools.
- blinkingled 11y agoThanks, but manual install fails with same error for golint and goreturns. I ended up git cloning into my %GOPATH%\src\golang.org\x from https://go.googlesource.com/tools https://go.googlesource.com/tools and https://go.googlesource.com/net https://go.googlesource.com/net - that seems to have fixed it.
- schmichael 11y agoAt work we have a monorepo and therefore a single GOPATH (we use a tool called glock for dependency pinning). A monorepo a fantastic way to live, but I totally understand that it doesn't work for everyone.
- frik 11y agoHas VS Code still the phone home feature, that can't be turned off? (no it's not okay to sniff on my data or usage, on my computer!)
- carussell 11y agoIf you build from source, osscode will never connect to those endpoints. Alternatively, you can just edit them out of the product.json from the release build that you download from MS.
- lcfcjs 11y agoOr just not use this crappy product
- calebegg 11y agoIt can be turned off now: https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting https://code.visualstudio.com/docs/supporting/faq#_how-to-di...
- integraton 11y agoOnly by manually editing internal program files using the command line. Also, > You will need to apply these changes after every update to disable collection of usage data. These changes do not survive product updates.
- jongalloway2 11y agoThe Feb 2016 release has a new setting that (I believe) persists between updates: https://github.com/Microsoft/vscode/issues/3182 https://github.com/Microsoft/vscode/issues/3182 https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting https://code.visualstudio.com/docs/supporting/faq#_how-to-di...
- fapjacks 11y agoTo be fair (and I can't believe I'm saying this), Bill Gates is spending a third of his time punching the clock at Microsoft, advising Nadella. It may not have been technically possible in the Gates era for this to happen, but I certainly agree with you on the Ballmer point. Anyways, I've been wondering how much of this Gates is responsible for.
- SixSigma 11y agoYou can add an extra bit : > a language created by Google by guys using Macintosh laptops > in an editor created by Microsoft At a plan9 conference when people turned up with Mac laptops, Brucee (who wrote considerable portions of Go's ancestors - Inferno & Limbo) remarked to me : "the interesting thing about the Mac was that it wasn't X86 and it wasn't Unix ... now it's both!".
- berkeleynerd 11y agoThe only thing holding me back is the lack of an integrated terminal. This is absolutely essential to my *nix workflow and I can't for the life of me imagine a reason to not include it. Otherwise, I love what I'm seeing here.
- coldtea 11y ago>This is absolutely essential to my nix workflow* Well, most editors and even IDEs don't offer one. >and I can't for the life of me imagine a reason to not include it. The reason being that terminal semantics are hell difficult to implement, and doubly so in a web-based stack?
- berkeleynerd 11y agoI'm using IntelliJ with the golang plugin at the moment and am spoiled by the integrated terminal. A quick Google search seems to indicate that the atom editor has a terminal plugin so maybe that would be a good basis for a port. VS Code feels much snappier than IntelliJ so I look forward to the day with an integrated terminal is available.
- bitmapbrother 11y agoShouldn't attribution of Visual Studio Code also be given to Google since it uses a large portion of code from the Chromium project?