如何切换签名帮助和智能VS代码?

问题描述 投票:1回答:1

我在Win8.1上具有VS代码。

我真的不喜欢signature box如何在编辑器中打开周围代码的方式。我喜欢智能感应盒。在页面上(上面的链接)说Ctrl+Shift+Space手动触发签名帮助。 但是如何关闭它?问题是它打开时没有我触发它。

我知道我可以通过将光标从功能块中移出来关闭它。但这是必须一直这样做的痛苦。我希望Ctrl+Shift+Space可以切换框。

我记得使用Visual Studio的时候。有一个快捷键可以切换或使盒子变得不透明。那很棒。 VS Code中有可能吗?

用于JavaScript / React(如果重要的话)


编辑:我在Reddit上找到了一个答案,但没有给我Visual Studio好的解决方案。但这会使盒子变得透明。但是它始终是透明的。这是中途解决方法的解决方案(从reddit-post剪切并粘贴,用户:tgreen7):

我找到了一种在设置中执行此操作的方法。如果您在这里https://code.visualstudio.com/docs/getstarted/theme-color-reference并搜索“ editorSuggestWidget.background”,即您要更改的设置。

例如,我的背景本来是十六进制颜色:#21252B

而且我这样更改了设置:

"workbench.colorCustomizations": {
    "editorSuggestWidget.background": "#21252BAA"
}    

现在我的建议窗口不透明。您可以调整十六进制数字的最后两位数字以获得所需的透明度(不透明度)。

visual-studio-code vscode-settings
1个回答
0
投票
`escape` will close it, and then Ctrl+Shift+Space to get it back. 

如果您想要切换,请尝试使用所需的任何键绑定:

   {
      "key": "ctrl+shift+space",
      "command": "editor.action.triggerParameterHints",
      "when": "editorHasSignatureHelpProvider && editorTextFocus"
    },
    {
      "key": "ctrl+shift+space",
      "command": "closeParameterHints",
      "when": "editorHasSignatureHelpProvider && editorTextFocus && parameterHintsVisible"
    },
© www.soinside.com 2019 - 2024. All rights reserved.