问题
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