在任何时候显示一个建议的 VisualStudio 代码智能感知

通常,当我在我的 VSCode 编辑器中输入时,智能感知会显示输入查询的所有可能建议。

但是,现在当我输入时,只显示了一个最符合查询的建议。

例如,当我输入 b时,智能感知只显示 HTML <b>元素的建议ーー而不是包含 <button>等标记的 名单建议。

有什么办法能改变这一切吗?我在网上搜索了很多,但是没有找到任何帮助。

11393 次浏览

VS Code 1.51 made the list of suggestions resizable so it's possible your suggest widget is simply shrunken down to be a single line high.

To fix this, trigger suggestions and then click and drag at the bottom edge of the suggest widget to increase the number of visible suggestions.

Resizing the suggest widget

Note that you can always use the arrow keys to navigate through suggestions, even if only one suggestion is visible. Use this to check if the widget is simply too small or if there really is only one suggestion

I wasted time on this too... (bummed)


Solution:

  • Open: Command Palette
  • Type: ">Reset Suggest Widget Size"
  • Select: 'click' or [ENTER]

Opinion:

Wish I saw Matt Bierner's answer sooner. (The suggestion window can be resized by dragging its borders with your cursor.)