我想使用某种模糊搜索打开一个文件,我确信我已经在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.