加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

Sublime Text 2 – 如何使用命令托盘从打开的文件夹打开文件?

发布时间:2020-12-14 22:23:20 所属栏目:资源 来源:网络整理
导读:我想使用某种模糊搜索打开一个文件,我确信我已经在Sublime Text中看到了这个功能,但由于某些原因,我无法在任何地方找到任何提及。 我想打开命令托盘并且能够在那里键入一个文件名,如果文件很近,它会打开我的文件,如果它是打开的,它将激活它的窗口和组
我想使用某种模糊搜索打开一个文件,我确信我已经在Sublime Text中看到了这个功能,但由于某些原因,我无法在任何地方找到任何提及。

我想打开命令托盘并且能够在那里键入一个文件名,如果文件很近,它会打开我的文件,如果它是打开的,它将激活它的窗口和组。

这可能吗?

解决方法

我看到你已经找到ctrl p,但这个功能的 original announcement有一些很好的使用信息,所以我以为我会发布。

The biggest change here is that the Ctrl+P dialog has been reworked into a more general “Goto Anything” popup. From this,you can:

Type,to search through files (open files,recently closed files,and files in open folders)

@foo,to search through symbols in the current file

:foo,to go to the given line number

#foo,to do a fuzzy search in the current file for foo

These can be combined: “foo@bar” will search for the file that best matches “foo”,and go to the symbol in that file that best matches “bar”. “foo:100” would go to line 100 of the same file. You can use this to preview a location in another file,then hit escape to go back to where you where.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读