TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Visual Studio Code for Go

468 pointsby rdudekulabout 9 years ago

37 comments

schmichaelabout 9 years ago
We&#x27;re a 100% Go shop and everyone on my team but me uses Visual Studio Code for Go. It&#x27;s really amazing. (My mind has just been so corrupted by years of vim usage I&#x27;m trapped.)<p>It&#x27;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.
评论 #11218447 未加载
评论 #11220182 未加载
评论 #11218541 未加载
评论 #11219765 未加载
评论 #11218479 未加载
评论 #11217973 未加载
评论 #11218008 未加载
评论 #11220394 未加载
评论 #11218670 未加载
评论 #11221831 未加载
atonseabout 9 years ago
I&#x27;m going to add the customary &quot;I love this new MS&quot; line here. About 10 years ago a friend of mine offered to make an introduction with her cousin, who was an exec at MS, to see about a job when I got out of college. I said &quot;no way, they&#x27;re working on such boring and dull stuff there&quot;<p>But after having worked in C# for a few years now (loving the language) and seeing all the open source moves they&#x27;re making, it seems like a really exciting place to work these days.<p>And I&#x27;m sure there&#x27;s a ton of renewed energy there.
评论 #11219175 未加载
评论 #11218372 未加载
评论 #11218397 未加载
lukehobanabout 9 years ago
Maintainer of the extension here. Happy to answer any questions about VS Code or the Go support specifically.
评论 #11221881 未加载
评论 #11219085 未加载
评论 #11221177 未加载
评论 #11218202 未加载
评论 #11220018 未加载
评论 #11220385 未加载
评论 #11218266 未加载
评论 #11218984 未加载
评论 #11218946 未加载
pkayeabout 9 years ago
I like VS Code a lot. It is cross platform and not too heavy. It has a lot of the modern features and look&#x2F;feel. Don&#x27;t have to load 50 million plugins to get something reasonable working. I&#x27;ve pretty much stopped using vim&#x2F;emacs&#x2F;notepad++ and numerous other editors though occasionally I use vim because I&#x27;m on a ssh connection. To me it seems the right balance between complexity and simplicity.
评论 #11218120 未加载
saikiabout 9 years ago
I have been working for sometime with Visual Studio Code and with this Go extension. I used to use Sublime 3 for Go development, but with this extension I have noticed that I use more often vscode than sublime for Go development.<p>It is also a big plus that vscode works very well with TypeScript and you can work seamlessly with TypeScript front and Go backend code.<p>One nice thing is that you can navigate e.g. function calls easily, which places call a function or directly find correct function in question like foo.New() by pressing F12 or shift+F12. When using Sublime to navigate to foo.New() would probably reveal quite many functions that are in your workspace path.<p>Go extension also imports automatically packages that you use in your code. Renaming types or functions also works nicely if your code compiles.<p>There are certainly things to be improved like not being able to conveniently use directories outside your vscode project e.g. common packages across different projects. But over all developer experience is really nice.
评论 #11222971 未加载
KirinDaveabout 9 years ago
Even if you don&#x27;t like MS or distrust them, seriously...<p>VS Code is a very good spiritual successor to TextMate. It has better performance characteristics for me than Atom, and I find extending it much less intimidating than Atom. I&#x27;m still more comfortable with Emacs keys, but I found it easy to add the emacs keys I miss.<p>Its license is such that even if MS abandons it I suspect the community will keep it going. So give it a try.
pjmlpabout 9 years ago
A bit off topic, but usually I tend to avoid browser based UIs for desktop applications, but the quality of current Rust support in Visual Studio Code made me open an exception just to use it.
评论 #11218802 未加载
alexc05about 9 years ago
I really love VSCODE. Like <i>really</i> love it.<p>In all fairness I am aware that I can also a <i>bit</i> of a Microsoft &#x27;fanboy&#x27; at times... so I held off on trumpeting around the office how truly great I think it is.<p>Of course if it came up in passing or anything like &quot;should I open that in sublime?&quot; came up, I&#x27;d make a sweeping grandiose statement like &quot;anything but VSCODE is for chumps&quot; (and we&#x27;d all laugh then move on about our day)<p>Anyways, a developer from another team recently saw over my shoulder and said &quot;oh yeah, I&#x27;m really liking VSCODE... I&#x27;ve pretty much switched to it full time now&quot; and <i>that</i> was the moment I thought maybe it&#x27;s not me just being a fanboy... this particular developer was pretty much known as our resident &quot;sublime expert&quot; so much so that he&#x27;d given multiple lunchtime presentations and talks around the office on subjects like &quot;how to turn it up to 11 with your sublime text editing&quot; and &quot;snippets for sublime - making you a bajillion times more productive&quot;<p>Anyways, I know how we used to have the religious holy wars about VI&#x2F;M vs. EMACS vs. whatever, so people really tend to fall in love with &quot;their&quot; text editor and are not really quick to switch <i>BUT</i> VSCODE has really got something special going on.
minionslaveabout 9 years ago
I&#x27;ve never programmed in Go before. Coming from a C# background. Can someone tell me, how does Go feel? Is is pleasant to work in, or is it tricky like C.
评论 #11217914 未加载
评论 #11217935 未加载
评论 #11218134 未加载
评论 #11218996 未加载
评论 #11222286 未加载
评论 #11218590 未加载
评论 #11220260 未加载
评论 #11220134 未加载
anthnguyen94about 9 years ago
VSCode&#x27;s API is great for extensions. Markdown Viewer is incredibly useful in VSCode. I also really like the way VSCode does its Git integration.<p>I&#x27;ve gotta say though, I&#x27;m still getting used to the non-tab layout...
andrewingramabout 9 years ago
I hate to be that guy, but I guess I will, because aesthetics are important to me when choosing a tool i&#x27;ll be using for several hours a day.<p>I <i>love</i> how Atom looks. Alongside the nicer extension system, the aesthetics of the default theme are what lured me away from Sublime Text.<p>I sadly can&#x27;t say the same for Visual Studio Code, which I hear so many great things about, but can&#x27;t bring myself to use for more than a few minutes. From what i&#x27;ve been able to tell, the only visual customisation available is choosing the syntax colour theme.
评论 #11221959 未加载
评论 #11223205 未加载
mholtabout 9 years ago
I had a good experience overall with this plugin (once it was set up, which wasn&#x27;t exactly trivial), but it keeps auto-completing in comments so when I hit [return] it inserts some random word rather than going to the next line. Every time I want to go to the next line I have to press [esc] then [return].
samuellabout 9 years ago
This is great. I love how definitions are display on hovering over any variable or function, the go to definition feature and the split window feature, which makes it sweet and easy to keep reference code bits while coding ... I think with the definition display on hover, it even beats vim.
CSDudeabout 9 years ago
Not related to Go plugin, but in VsCode I hate the tabs in the left panel, feels very different and I could not even adjust it after 6 months.<p>However, the Go plugin is really nice and works perfectly, even, the debugger works &#x2F;most of the time&#x2F; . It is fast and handy. Recommended.
评论 #11218492 未加载
pasbesoinabout 9 years ago
Years ago, when MS was thick in the anti-trust contentions, pops and I agreed that were they to break up, it would be great to have one segment be &quot;tools.&quot; MS has long had and offered some great programming support -- compilers, development environments, etc.<p>However, with monolithic MS, those too often seem tied to and influenced by the larger corporation&#x27;s goals. You know, world dominance, crushing the opposition, and all that.<p>I hope that this new push by MS is genuine and does not morph into another embrace, extend, and -- purposefully or simply inevitably -- extinguish effort.<p>I&#x27;m not in the thick of it. This is probably an outdated and way far outside observation. Nonetheless, MS support still leaves me looking for the strings attached.
yegleabout 9 years ago
I find it funny that README refer syntax highlighting as &quot;colorization&quot;.
评论 #11217811 未加载
SonicSoulabout 9 years ago
I&#x27;ve used it on a macbook for a short time for node&#x2F;javascript development, but found it buggy and had to switch back to sublime. The <i>undo</i> (cmd+z) would occasionally get in a weird state where the undo would happen partially (not all lines or columns?) and the whole history would be screwed, or outright stop doing anything. Few times i had to close the file to get last saved version. Perhaps it&#x27;s something I was doing wrong but it was enough not to use the product, which was great otherwise! Will try again when I hear of new versions coming out..
评论 #11220113 未加载
thewhitetulipabout 9 years ago
I wonder why this was featured today, I have been using vscode for Go since a few months now. It is totally amazing, especially the ctrl+P option! It isn&#x27;t highlighted but it is a little gem.
dcw303about 9 years ago
Delve integration is better than I anticipated. Breakpoints, step in, step over work as expected. Step out not functional but that&#x27;s a given as delve doesn&#x27;t do it either. Call stack is implemented. Variables doesn&#x27;t seem to automatically work, but adding a var to Watch is ok.<p>With the debug tools, linter, and navigate in&#x2F;out of definitions, this looks like a pretty efficient workflow.<p>Caveats: I can&#x27;t compare to Atom, or anything other than vanilla Vim (haven&#x27;t configured either of them with any of the go integrations).
评论 #11222234 未加载
swalshabout 9 years ago
Wait, does the debugger work now? The last time I picked up Visual Studio code with a C# core project I couldn&#x27;t&#x27; get the debugger to work with dnx web
评论 #11218155 未加载
评论 #11218334 未加载
bipin_nagabout 9 years ago
I code a lot in Go. I use Sublime Text mostly and this feels like an upgrade. Integration with Git, better plugins&#x2F;support I am loving it.
zerrabout 9 years ago
Seems like Acme got a serious competition... :)
michaelwwwabout 9 years ago
Visual Studio Code is my favorite editor. I&#x27;ve mentioned it before but I wanted to add that I&#x27;m working on a PHP project and by using XDebug on a local server and VSCode as an editor&#x2F;debugger I have a really nice lightweight debugging solution. The PHP extension to VSCode is solid.
评论 #11218838 未加载
nowprovisionabout 9 years ago
What does Visual Studio Go offer that I don&#x27;t get from vim-go? Does it have gofmt hooks on file save?
cdnsteveabout 9 years ago
Debug support, syntax highlighter, looks very nice. Having trouble getting go build on save working.
hit8runabout 9 years ago
WTF!? I already posted this exact link 4 days ago and it got almost no attention :D Sometimes HN is weird. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11193028" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11193028</a>
评论 #11221568 未加载
sakopovabout 9 years ago
I&#x27;ve been a .net dev for years now and it&#x27;s such a joy to see stuff like this come out of MS. I&#x27;m a heavy VS user and haven&#x27;t had the need to switch to VSC yet. I might check it out for angular&#x2F;js apps.
rshetty10about 9 years ago
VS Code seems a bit of overkill to use as an editor for golang editing. As someone already mentioned in the comments, my mind is also corrupted with Vim awesomeness and vim with vim-go works shockingly every-time.
aqtransabout 9 years ago
I&#x27;ve found myself always coming back to VSCode for my (stupid simple, nothing crazy like Docker or anything) Go projects. They&#x27;ve really done a fine job with the editor and extensions. Bravo Microsoft!
donatjabout 9 years ago
If you write Go and haven&#x27;t tried LiteIDE I&#x27;d recommend it strongly.
评论 #11221380 未加载
alooPotatoabout 9 years ago
Anyone used Atom with the Go plugin, can you compare?
ausjkeabout 9 years ago
If it has source-navigator capability(generate call-graphs etc like what source nagivator does, or similar to ctags) that will be awesome!
valevkabout 9 years ago
What&#x27;s the difference between lukehoban&#x27;s Go extension?
评论 #11217740 未加载
评论 #11217738 未加载
评论 #11217745 未加载
spvabout 9 years ago
Would love have support like this for Python.
Maxenceabout 9 years ago
I use it daily, this one is very good.
m6w6about 9 years ago
JFC, that&#x27;s how VS looks nowadays?
评论 #11219024 未加载
kampsyabout 9 years ago
I like VsCode especially for js css and html5 stuff. The problem I have with it is that it starts to lag when my codebase gets larger eg above 600 lines. Thats the reason why I switch to Atom. I think Atom is the best free text editor.
评论 #11218998 未加载
评论 #11219057 未加载
评论 #11218523 未加载