如何使 VSCode Intellisense 窗口更宽 [英] How to make VSCode Intellisense window wider
问题描述
我有一个 VSCode 扩展,可以帮助我自动完成文件路径,但是许多文件路径变长并在 VSCode 智能感知弹出窗口中被截断.
I have a VSCode extension that helps me autocomplete file paths, however many file paths grow long and are truncated in the VSCode intellisense popover window.
如何将 VSCode 设置为:
How can I set VSCode to either:
- 有一个固定的宽度,我可以设置为大
- 自动扩展以适应智能感知选项(首选)
我碰巧写了扩展,所以如果需要我可以更新它.
I happen to have written the extension so if needed I can update it if that is required.
推荐答案
我不认为这是可能的,VSCode 通常给扩展很少的内置 UI 控制.另请参阅限制 扩展功能概述的部分.从技术上讲,有一种破解方法,但我不一定会推荐它.
I don't think this is possible, VSCode generally gives extensions very little control over the built-in UI. See also the Restrictions section of the Extensions Capabilities Overview. Technically there is a way to hack around that, but I wouldn't necessarily recommend it.
建议小部件也有许多设置,但似乎没有一个直接对应于宽度.您可以获得的最接近的方法是使用 "editor.suggestFontSize"
减小字体大小.
There are also a number of settings for the suggest widget, but none of them seems to correspond directly to width. The closest you can get would be reducing the font size with "editor.suggestFontSize"
.
这篇关于如何使 VSCode Intellisense 窗口更宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!