1
0

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 5 years have passed since last update.

Visual Studio Codeでgorenameが使えない問題に対処する

Posted at

Visual Studio Codeでgolangを使っていると、F2キーでシンボルの名称を変更することができるらしいのですが、実際に実行してみると、

Rename failed: gorename: can't find package containing ......main.go 

と怒られてしまいます。下記の2点を行えば解決します。

  1. 設定に"go.useLanguageServer": trueを追加する
  2. VS Codeからサジェストされるgoplsインストールする

Goland使いたい。。。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?