我在探索 vscode
使用后atom
很长一段时间。我缺少的一件事是相当于可爱的包裹 advanced-open-file
. vscode中是否有类似的东西?
我找到了 advanced-new-file
扩展名,但它只对新文件有用。我希望能够从我的本地文件(不仅是工作区)中快速打开文件。
编辑:我找到了 workbench.action.quickOpen
的选项;但它不允许从整个文件系统打开文件。
最佳答案
对不起,但是当前 答案是不。问题是输入框没有提供监听按键事件的方法:
GitHub issue ,
所以即使是扩展目前也无法做到这一点。这是来自 advanced-new-file 的评论扩展创建者:
Because VSCode extensions don't yet have the ability to do type-ahead autocomplete within the text input box (See https://github.com/Microsoft/vscode/issues/426), we work around this limitation and provide autocomplete using a two-step workflow of selecting existing path, then providing new filename/path relative to the selection.
好消息是有a new API解决这个问题,但它目前在 'proposed' state 并且不能用于已发布的扩展。
一种解决方法可能是键入
code -r some/path
在集成终端中并使用“选项卡”进行自动完成。
关于visual-studio-code - 在 vscode 中打开模糊文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49371250/