visual-studio-code - 在 vscode 中打开模糊文件

标签 visual-studio-code atom-editor

我在探索 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/

相关文章:

python - 如何在 Windows 上的 Atom 中安装 flake8

在 VS Code 上调试 Jest

javascript - 自定义文件扩展名的 VSCode 导入路径智能感知

node.js - 从 Visual Studio Code 打开 Jest Icov 覆盖率报告的最便捷方式是什么?

python - 在 atom 中运行 python 脚本时获取用户输入

typescript - 您如何使用 atom-typescript 包控制/配置 linting?

java - 使用 vscode 远程调试 java 云应用程序的问题

visual-studio-code - 如何使用vscode扩展隐藏侧边栏中的时间线和大纲

keyboard-shortcuts - PlatformIO 的 Atom 覆盖键绑定(bind)

atom-editor - Atom - 强制选项卡宽度 2