How can I find the particular file in a Project/Folder in Sublime Text

Sublimetext

Sublimetext Problem Overview


I know that using ctrl+shift+f we can find the text in folder we want and simple ctrl+f will find the text in a opened file or we can right folder and click on a option Find in Folder... to search the text

I am looking for, how can I find the file in a Folder/Project.

Sublimetext Solutions


Solution 1 - Sublimetext

You can use the Goto Anything feature (Ctrl+P on Windows and Linux, Cmd+P on macOS) and type the name of the file you're looking for. If there are multiple hits, you can select the appropriate file using cursor keys. It also supports powerful operators, that let you jump to specific parts inside a file.

Examples:

  • file.js opens that file

  • :100 jumps to line 100 in current file

  • file.js:100 jumps to line 100 in file.js

  • @loadFile lists all files with classes/functions named loadFile (shortcut: Ctrl+R, Cmd+R on macOS)

  • file.js@loadFile jumps to a loadFile() in file.js

Solution 2 - Sublimetext

This can be done using:

  • Windows: Ctrl + P

  • Mac: Cmd + P

It works much like ItelliJ's Shift - 2 times, with a faster and accurate prediction.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMohammed Abrar AhmedView Question on Stackoverflow
Solution 1 - SublimetextidlebergView Answer on Stackoverflow
Solution 2 - SublimetextShivaji ReddyView Answer on Stackoverflow