dotCover Help

Configuring Keyboard Shortcuts

For Visual Studio integration, dotCover provides two default keyboard shortcuts schemes.

  • Visual Studio scheme that was introduced in ReSharper in order to minimize conflicts with Visual Studio's own keyboard shortcuts.
  • ReSharper 2.x/IntelliJ IDEA scheme that shares the majority of shortcuts with those used in IntelliJ IDEA and its derivative web development IDEs. This scheme provides a common keyboard-centric experience among all JetBrains development environments.

Whatever scheme you choose, you can always change individual keyboard shortcuts later:

To study the list of dotCover commands with their default shortcuts, see Default Keyboard Shortcuts Schemes.

Changing shortcuts and shortcut schemes

When you start Visual Studio for the first time after installing dotCover, the Keyboard Scheme dialog box opens, where you can choose the default shortcut scheme to be used.

Choosing ReSharper keyboard shortcuts scheme

You can change the selected scheme later using the corresponding selectors on the Environment | Keyboard & Menus page of dotCover options.

Regardless of the currently selected scheme, you can always configure individual keyboard shortcuts.

To configure individual keyboard shortcuts

  1. On the main menu, choose Tools | Options.
  2. Expand the Environment node, then click Keyboard.
  3. Use the shortcut tables to find the alias of the command, to which you are going to assign a new shortcut.
  4. Do one of the following:
    • Type the name or a part of the name of the command you are looking for in the Show commands containing field. The list of available commands narrows down and you can easily find the desired one.
    • Look through the list of available commands, scroll down to command names that start with ReSharper.
      Once the list of commands in the Keyboard tab receives focus, press Ctrl+r to jump to items with initial r.
    Select the desired one.
  5. The corresponding shortcut key combination is displayed in the Shortcuts for selected commands drop-down list, if any combination exists.
  6. You can remove the existing key combination(s) and/or add the new one(s).
    • Choose the combination in the Shortcuts for selected commands drop-down list, then click Remove.
    • The same shortcut key combinations can be used in different areas, so you should specify the area. Specify the area using the Use new shortcut in drop-down list. Then place the caret in the Press shortcut keys text box and press the desired key combination. Click Assign.
  7. Click OK.

Resolving keyboard shortcut conflicts

Some keyboard shortcuts, that are used in the default shortcut schemes: may be already mapped to Visual Studio commands. In these cases, dotCover does not silently replace existing Visual Studio keyboard shortcuts. As soon as you use a conflicting shortcut, i.e. that is used by both the Visual Studio and dotCover, you are prompted to resolve this conflict using the dotCover Shortcut Conflict dialog box:

Shortcut conflict dialog

Select one of three available options:

  • Use dotCover command: binds the conflicting shortcut to the dotCover command.
  • Use Visual Studio commands: resolves the conflict in favor of the Visual Studio command.
  • Configure dotCover command: opens the Keyboard tab in the Visual Studio Options dialog box to help you customize the current keyboard scheme.

Whatever option you choose, you can apply your choice to all other conflicting dotCover shortcuts by selecting Apply to all dotCover shortcuts.

See Also

Last modified: 13 August 2015