0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VSCodeでGoの開発環境を作成する

Last updated at Posted at 2023-09-08

基本的にJetBrains製の開発環境を使っていたため、
VSCodeはメモ帳代わりにしか使った事がないが、
新しい会社ではリモートモブプロ含め、VSCodeをメインで利用されてるようなので、
GoLandから乗り換えてみる。

前提

Goがインストールされていること。

VSCodeの拡張機能のインストール

Go

  1. Ctrl + Shift + XでEXTENSIONS: MARKETPLACEを開く。
  2. Go for Visual Studio Codeを検索してきてインストールする。

開発に必要なツールの更新

  1. Ctrl + Shift + Pでコマンドパレットを表示する。
  2. Go: Install/Update toolsを検索する。
  3. 全てをチェックし、OKを押す。

実行とデバッグ

  1. Ctrl + Shift + DでRun and Debugを表示する。
  2. ▷ボタンから実行する。

感想

もしかして、Goプラグインのみを入れれば動くのかなこれ。
下記記事などをみると、なんか他にもlinterみたいなやつとか必要な気がするが、いまいち何がよいのか分かっていない。

しばらく使ってみつつ、他のプラグインを入れて検討しつつ、この記事を更新してみる。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?