FFF Code
Find files and search their contents without leaving VS Code or Cursor. FFF Code
uses the editor's native Quick Pick, ranks files you use often near the top, and
updates results as you type.
What you can do
- Find files by fuzzy-matching their names and paths.
- Fuzzy-search file contents with smart-case matching.
- See Git status beside each result.
- Preview results before opening them.
- Open a result in the current editor or beside it.
- Switch between file and content search from the same picker.
Git-ignored files are excluded from search.
Install
Install a .vsix built for your operating system and CPU:
- Open the Extensions view in VS Code or Cursor.
- Open the
... menu and choose Install from VSIX....
- Select the FFF Code
.vsix file.
FFF Code requires VS Code 1.105.0 or newer. It supports macOS, Linux, and
Windows on x64 and ARM64.
Find a file
Press Cmd+P on macOS or Ctrl+P on Windows and Linux, then start typing a file
name or path.
FFF Code learns from the files you select. Files used frequently and recently
move higher in future results.
You can also run FFF: Find Files from the Command Palette.
Search file contents
Press Shift+Cmd+F on macOS or Shift+Ctrl+F on Windows and Linux, then type
the text to find.
Search uses fuzzy matching and smart case: lowercase queries are case-insensitive,
while a query containing uppercase letters is case-sensitive.
You can also run FFF: Search File Contents from the Command Palette.
Picker controls
| Action |
Control |
| Move through results and preview them |
Up / Down |
| Open the selected result |
Enter |
| Open a result beside the current editor |
Select its split-editor button |
| Switch between file and content search |
Select the button in the picker title bar |
| Close search and restore the previous editor |
Escape |
Content results open at the matching line and column.
Settings
Open Settings and search for FFF Code, or add these options to your
settings.json:
{
"fffCode.maxResults": 100,
"fffCode.grepTimeBudgetMs": 100
}
| Setting |
Default |
Range |
Purpose |
fffCode.maxResults |
100 |
10-500 |
Maximum results shown per search |
fffCode.grepTimeBudgetMs |
100 |
10-1000 |
Maximum extension-host time spent on each live content search |
Workspace behavior
FFF Code needs an open, trusted folder. Virtual and untrusted workspaces are not
supported.
In a multi-root workspace, FFF Code searches the folder containing the active
file. If no file is active, it searches the first workspace folder.
FFF Code runs where the workspace lives. For SSH, containers, or WSL, install a
build matching the remote host's operating system and CPU.
Problems
- FFF needs an open workspace folder: open a folder or workspace, then run
the command again.
- Commands are unavailable in Restricted Mode: trust the workspace before
using FFF Code.
- Search fails in a remote workspace: install a build made for the remote
host, not the local computer.
Report bugs in the issue tracker.
License
Zlib