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

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

概述我想使用某种模糊搜索打开一个文件,我确信我已经在Sublime Text中看到了这个功能,但由于某些原因,我无法在任何地方找到任何提及。 我想打开命令托盘并且能够在那里键入一个文件名,如果文件很近,它会打开我的文件,如果它是打开的,它将激活它的窗口和组。 这可能吗? 我看到你已经找到ctrl p,但这个功能的 original announcement有一些很好的使用信息,所以我以为我会发布。 T 我想使用某种模糊搜索打开一个文件,我确信我已经在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.

总结

以上是内存溢出为你收集整理的Sublime Text 2 – 如何使用命令托盘从打开的文件夹打开文件?全部内容,希望文章能够帮你解决Sublime Text 2 – 如何使用命令托盘从打开的文件夹打开文件?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1116081.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存