Navigation Redirection Configuration (ctrl + T)

I would like to know if Resharper ctrl + T navigation can be customized.

Some examples of what I mean:

  • Show all classes of type .cs (but not other types, for example: .config, .js).
  • I have T4MVC packages, and when I press ctrl + T, it displays many of the T4MVC generator classes that I would like to hide (these are just a lot of junk files that I don’t want to see when searching for types).
+8
visual-studio keyboard-shortcuts resharper shortcut-key
source share
1 answer

Well, I went through Resharper , and I noticed that there is no direct interface for modifying existing keyboard shortcuts for it. However, perhaps a solution to the conflict will help you. Although it provides you with a way to configure add shortcuts.

Customize Shortcut Keys

All ReSharper actions can be called using keyboard shortcuts. Most actions have default shortcuts that you can use out of the box. For the rest of the actions, you can assign your preferred keyboard shortcuts, if necessary.

ReSharper provides two default shortcuts.

  • Visual Studio This scheme is designed to minimize conflicts with Visual Studio keyboard shortcuts.
  • ReSharper 2.x / IntelliJ IDEA . This scheme shares most of the shortcuts with those used by IntelliJ IDEA and its derived web development IDEs. It provides general keyboard interaction across all JetBrains development environments.

Whichever scheme you choose, you can always change individual keyboard shortcuts later.

Change shortcuts and shortcuts

When you start Visual Studio for the first time after installing ReSharper, the Keyboard Layout dialog box opens, where you can select the default shortcut layout.

enter image description here

You can change the selected scheme later using the corresponding selector in Environment | Keyboard and ReSharper options menu .

Regardless of the currently selected pattern, you can always customize individual keyboard shortcuts.

To customize individual keyboard shortcuts

  • From the main menu, select Tools | Options
  • Expand the node environment, then press Keyboard.
  • Use shortcuts to find the alias of the command to which you want to assign a new shortcut. If some command does not have a default shortcut, you can find its alias under the heading of the corresponding help page. For example, Convert a method to an index.
  • To find the desired command, you can also do one of the following:

    • Type the name or part of the name of the command you are looking for in the Show Commands Containing Field command. The list of available commands is narrowed, and you can easily find the right one.
    • Browse through the list of available commands, scroll down to the names of commands that start with ReSharper.

    Once the list of commands on the Keyboard tab is received, press CTRL + R to jump to the elements with the initial r.

  • The shortcut combination of the selected command is displayed in the Shortcut list for the drop-down list of selected commands, if any shortcut exists.

  • You can delete existing key combinations and / or add new one (s).
    • Select a combination in the shortcuts for the commands selected by the drop-down list, then click "Delete."
    • The same shortcut key combinations can be used in different areas, so you must specify the area. Specify the area using the "Use New Shortcut" button in the drop-down list. Then place the cursor in the text box and press the desired key combination. Click Assign.
  • Click OK.

Resolving keyboard shortcut conflicts

Some keyboard shortcuts used in default shortcut schemes, especially in the ReSharper 2.x / IntelliJ IDEA scheme, can already be mapped to other Visual Studio commands. In these cases, ReSharper will not replace existing Visual Studio keyboard shortcuts. Once you use a conflicting shortcut, that is, that is used by both Visual Studio and ReSharper, you will be asked to resolve this conflict using the ReSharper Shortcut Context dialog box:

enter image description here

Choose one of the three available options:

  • Use the ReSharper command: associates a conflicting shortcut with the ReSharper command.
  • Use Visual Studio Commands: resolves the conflict in favor of the Visual Studio team.
  • Customize ReSharper Command: Opens the Keyboard tab in the Visual Studio Preferences dialog box to help you customize your current keyboard layout.

Whichever option you choose, you can apply your selection to all other conflicting ReSharper shortcuts by choosing Apply to all ReSharper shortcuts .

Read more ... Source click here ...

Hope this helps you :)

+2
source share

All Articles