VScode for Golang [2022] Simple setup!

  Рет қаралды 63,412

John McBride

2 жыл бұрын

► WATCH LIVE: twitch.com/johncodes
► Twitter: johncodezzz
► Home page: johncodes.com
► Email me: hello@johncodes.com
In this video we're looking at how to get the VScode go extension installed and configured. It's much much more simple as of 2022.
#johncodes
🚀 SUMMARY:
Today, we're going to talk about using Visual Studio Code with golang and installing the go extension for VScode. This is a followup video to a previous one I did a few years ago on using vscode with Go but now, it's so much more simple. All the tools come configured to be installed and the debugging by default works well.
Download vscode: code.visualstudio.com/Download
Setup golang: golang.org/doc/install
🤔 About:
Hi all, I’m John, an experienced software engineer and open source software enthusiast. I make fun and informative videos about tech, engineering, productivity, and life! Like, comment, and subscribe for more!

Пікірлер: 37
@JohnCodes
@JohnCodes 2 жыл бұрын
Hope you enjoy the video! I know I've become much more of a vim-evangelist these days, but had to make an update to that last video since it got so so out of date.
@ReviewSmartTech
@ReviewSmartTech 2 жыл бұрын
how to get cobra project?
@GrizverG
@GrizverG 3 ай бұрын
in both tutorials for setup there is 0 info on how to create a file that can be run... what is the value of the video?
@andrewr1349
@andrewr1349 7 ай бұрын
Excellent vid bro! Thank you so much!
@chaowmuscle
@chaowmuscle Жыл бұрын
Thank you. Please make more video like this. It's very helpful. I try to be Golang developer and I will someday. And want that day some you is one of them that helping me to get the job.
@andyvarella6336
@andyvarella6336 6 ай бұрын
Thanks John. Very informative and helpful video on getting set up.
@romansheremeta2040
@romansheremeta2040 6 ай бұрын
you saved me lots of time, thx mate!👏
@vz79nr
@vz79nr Жыл бұрын
Lovely thank u John
@74Bagas
@74Bagas 2 жыл бұрын
ok, lets'go. subscribed for this
@mamun001
@mamun001 Ай бұрын
Thank you
@ashermanangan
@ashermanangan 11 ай бұрын
thanks!
@alexanderk4481
@alexanderk4481 Жыл бұрын
Thanks
@FPChris
@FPChris 2 жыл бұрын
I had numerous fails on the tools. Install I had to copy the command line error text to install each tool manually until it finally stopped erroring.
@Krokodi
@Krokodi Жыл бұрын
Hi John, this video looked very promising, but unfortunately it couldn't answer my very simple question: How do I make a new go project? From scratch.
@shuangwu1665
@shuangwu1665 2 ай бұрын
I really want to know what is this color scheme. It looks so nice.
@rishnavya
@rishnavya Жыл бұрын
Please share the video for go formatter, prettier doesn't seem to work for go
@YzKuro
@YzKuro Жыл бұрын
This is great video, but can you increase font for your video, I'm really hard to read from my laptopo
@codelinx
@codelinx Жыл бұрын
Agreed
@slimyslime7740
@slimyslime7740 Жыл бұрын
How do you open cobra? you didn't explain that
@FPChris
@FPChris 2 жыл бұрын
Video player for Go?
@探索生活dp
@探索生活dp Ай бұрын
I don't have the correct setup and when I click "run and debug", it tells me failed to launch. Also generate unit test for a function is not working as well.
@AbbasBadran
@AbbasBadran 2 жыл бұрын
Dear John, nice videos...I wanted to ask you how do you shoot your videos? green screen? tools? I shoot management videos and trying to have the best setup
@JohnCodes
@JohnCodes 2 жыл бұрын
You're welcome! Green screen behind me, recorded with OBS, edited with Kden live. The mic is a Shure sm7b and I have that on a Cloudlifter and an audio interface. That's about it!
@AbbasBadran
@AbbasBadran 2 жыл бұрын
@@JohnCodes thanks s million
@GDColtre
@GDColtre 2 жыл бұрын
I've recently started studying programming and I'm going for Go My issue is that autocomplete is simply not working at all, i've tried every online solution and nothing seems to get it done. I've updated the plugins, tried to change the json file as lots of ppl online said (including copy/pasting the whole file) I've restart the language several times and still nothing works, I'm very frustraded atm, any tips on what could be?
@franciscogomes4009
@franciscogomes4009 2 жыл бұрын
Hey. I struggled a lot with that. In my case, I'm able to get completions if I open the file UNDER the vs code workspace. Not working example: Vs code workspace: ~/test/golang/ File opened: ~/another/path/main.go Working example: Vs code workspace: ~/another/ File opened: ~/another/path/main.go Also, make sure that there are three folders under your $GOPATH: src, pkg, and bin. I'm sad that I spent so much time searching this. Hope it can help you!
@GDColtre
@GDColtre 2 жыл бұрын
@@franciscogomes4009 thx bro! This actually worked!! :)
@slowtyper95
@slowtyper95 Жыл бұрын
@@franciscogomes4009 can you please elaborate more about the workspace thingy and how do i know where my workspace path at? usually i just open my project thru folder. thank you!
@SpikeRazorshards
@SpikeRazorshards 2 жыл бұрын
You lost me at "Cobra, which is a pretty popular Go project." My stuff's blank, dude. Where'm I supposed to get that?
@JohnCodes
@JohnCodes 2 жыл бұрын
Any ol Go project will do. Even a "hello world" program :) I was just using Cobra as an example. But if you'd like to poke around it, you can git clone it here: github.com/spf13/cobra
@ahmedanwer6899
@ahmedanwer6899 Жыл бұрын
bro stop blocking half the screen
@namename8986
@namename8986 2 жыл бұрын
John why do you have a winter hat on?
@JohnCodes
@JohnCodes 2 жыл бұрын
because it was winter when i recorded this 😄
@eltirad0
@eltirad0 2 жыл бұрын
do you know how to work with microsrvices in golang? what I want to do is open a workspace folder with all my microservices and start working in a simple instance in VS Code instead of having a new VS Code instance for each microservice, I am able to open the workspace but it shows a lot of errors in each .go file in the import sections, I think I need to configure something about go modules (go.mod) in every microservice but I don't know what :(
@jerricotan
@jerricotan 8 ай бұрын
Bro did you find any solution to this? This is my problem now :(
@yoshiyoshi6
@yoshiyoshi6 6 ай бұрын
5:51 I dont find it now
@budgetvloggertelugu2325
@budgetvloggertelugu2325 Жыл бұрын
worst video.. be clear and stright forward
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 108 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 2,3 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 11 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 17 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 349 М.