VS Code only displays 1 row of possible import paths. How do i convert back it to default listbox?

蹲街弑〆低调 提交于 2021-01-05 08:53:43

问题


I think I made some setting changes in vs code which made my import statements look like this.

The default VS code import preview shows 3 or more paths. What would be the option I should change to revert it back to the default list box view?

My settings.json


回答1:


The last vscode update to v1.51 added the ability to change the size, height and width, of the suggestion box. It also seems to have set the box height to one lineHeight for some people. There is a command in the command palette to reset the suggestion widget's dimensions:

Reset Suggest Widget Size that should fix your situation.

You can also drag the lower boundary of the box down (or the right edge left and right) to change its dimensions.

The old setting that set the suggest widget's height to some user-defined number of entries (I believe the default was 12) is now gone. If you change its height or width (as well as the width of the extra info flyout box connected to the suggestion widget) that change should be remembered.



来源:https://stackoverflow.com/questions/64952584/vs-code-only-displays-1-row-of-possible-import-paths-how-do-i-convert-back-it-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!