Keyboard shortcuts - lazycodertools/codefilter GitHub Wiki

General

Press Shift + Esc to hide the Code Filter (or any other) tool window.

Filter

Type '=' to choose a view.

Type additional keywords to filter the views list, if there is a single item in the list press Enter to choose it.

Type '=+' to add a view to the current search.

Type '=-' to exclude a view from the current search.

Type '==' to choose a scope.

Type '==+' to add a project or a file to the current scope.

Type '==-' to exclude a project or a file from the current scope.

Type '===' to see a list of previous searches

If filter text box is empty, pressing Ctrl + Backspace shows previous search.

Type '====' or press Ctrl + Down Arrow to see a list of previous filter phrases.

Press Ctrl + Up Arrow to clear the filter phrase

Search results

Navigation

Pressing Enter on the current element opens corresponding location in the source editor.

Pressing Ctrl + Enter opens location and jumps to the editor.

Setting the option 'Locate Code On Selection' to 'True', opens corresponding location on current element change.

If files are shown:

Ctrl + Up Arrow and Ctrl + Down Arrow jump between files.

When a file is selected:

Ctrl + Left Arrow collapses the file elements.

Pressing Ctrl + Left Arrow on file that is already collapsed, collapses all the files.

Ctrl + Right Arrow expands the file elements.

Pressing Ctrl + Right Arrow on file that is already expanded, expands all the files.

Selection

Ctrl + A selects all list elements

Space toggles selection of the current item, clearing any other selected items.

Ctrl + Space toggles selection of the current item, preserving any other selected items.

Shift + Up Arrow and Shift + Down Arrow expands or shrinks the selected area.

Ctrl + C copies selection to Clipboard.

Changing search scope

When one or more file items are selected, pressing '=' sets the search scope to the selected files.

Pressing '-' removes selected files form the search scope.

Views

Scopes

Search history

Del removes selected items from the history

Filter history

Del removes selected items from the history

C# code editor

Press Ctrl + 2 to open the Code Filter tool window and set focus to the filter text box.

Any selected code will set as a filter phrase.

Press Shift + Ctrl + 2 to open the Code Filter tool window, and try to locate the current code line in the search results.

These keyword mappings can be changed from the Visual Studio options dialog as follows:

  1. Open the 'Tools -> Options' menu.

  2. In the options dialog open 'Environment / Keyboard' section.

  3. Search for CodeFilter to find the two commands.