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

vscodeコンテナー環境でgo rename出来ない

Posted at

実行環境

VSCode 1.47.3
Go 1.14.4
Remote-Containers v0.128.0

問題

「シンボルの名前を変更 F2」を行ったら、

Rename failed: gorename: can't find package containing /****/****/***.go
名前の変更を実行できませんでした。

解決

  1. ctrl + ,設定ページ開く
  2. 「go server」で検索する
  3. 一番下にGo:Use Language Serveをチェックする
    image.png
0
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
0
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?