我可以将快捷键绑定到快速修复特定的弱警告吗?

huangapple go评论89阅读模式
英文:

Can I bind a shortcut to quick fix a specific weak warning?

问题

我正在尝试将一个快捷键绑定到GoLand中的特定弱警告。

我喜欢声明隐式结构字面量。

尽管我在gif中点击了它,但现在我已经将选项"显示快速修复"绑定到一个快捷键,但我仍然需要导航到"问题"工具窗口,并选择警告。

有没有办法可以用一个快捷键完成这个操作?只针对这个特定的警告?

英文:

我可以将快捷键绑定到快速修复特定的弱警告吗?

I'm trying to bind a shortcut key to a specific weak warning in GoLand.

I like declaring implicit struct literals.

Although I click on it in the gif there I have it now the option "Show quick fixes" binded to a shortcut but I still have to navigate to the Problems toolwindow, and select the warning.

Is there a way I can do it in one shortcut key? Just for this specific warning?

答案1

得分: 2

我能够解决这个问题,或者说我一直在做的就是解决方法,因为我应该从编辑器中访问“显示上下文操作”选项,现在我只需要按下快捷键并按下回车键,它就会自动执行。 我可以将快捷键绑定到快速修复特定的弱警告吗?

英文:

i was able to work around it, or i guess what i've been doing was the work around coz what i should be doing is accessing the show context actions options from the editor now i just do that keybind and press on enter and it just goes. 我可以将快捷键绑定到快速修复特定的弱警告吗?

huangapple
  • 本文由 发表于 2022年12月5日 00:40:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/74678682.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定