Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h1><em>F7, (Ctrl+[)+, Shift+F12</em></h1> <ul> <li>F7 for viewing code</li> <li>Ctrl+[ to navigate to a containing declaration until you reach the class name<br> (Press it several times or just keep keys down until class name is reached)</li> <li>Shift+F12 to show all references of that Control class </li> </ul> <p><strong>Again in detailed steps:</strong> </p> <p>Assumed you have open the Design View of a forms control (<code>MyControl.Designer.cs</code>). </p> <ol> <li><p><em><strong>F7</em></strong><br> (You don't need to select control before.)<br> => Code file <code>MyControl.cs</code> is open. </p></li> <li><p><strong>Set cursor on control's class name by:</strong> </p> <ul> <li>selecting with mouse or </li> <li><em>Ctrl+[</em> if you are below control's class declaration or </li> <li><em>Alt+Down</em> if cursor is above control's class declaration or </li> <li><em>Alt+\</em> and select first class name.<br> (Control's class name should be the first in all Forms controls code files.<br> <em>Alt+\</em> lists all members in real, non-alphabetical order (at least in my ReSharper 5.1.3))<br> . </li> </ul></li> <li><p><em><strong>Shift+F12</em></strong><br> => lists all usages </p></li> <li><p><em><strong>Shift+F7</em></strong><br> => switches back to Design View </p></li> </ol> <p><strong>or</strong> </p> <h1><em>F7</em>, select control in <em>File Stucture</em> window, <em>Shift+F12</em></h1> <p>If you have already File Structure window (<em>Ctrl+Alt+F</em>) open (I have it always open.) switch to code view by <em>F7</em>, click there control's class name and press <em>Shift+F12</em>. </p> <p><strong>Again in steps:</strong> </p> <p>Assumed you have open the Design View of a forms control. </p> <ol> <li><p><em><strong>F7</em></strong><br> (You don't need to select control before, just have focus on Design View window.)<br> => Code file <code>MyControl.cs</code> is open. </p></li> <li><p><strong>Open <em>File Structure</em> window (<em>Alt+Ctrl+F</em>)</strong> </p></li> <li><p><strong>Select control in <em>File Structure</em> window by:</strong> </p> <ul> <li>selecting with mouse or </li> <li><em>Ctrl+Pos1</em><br> (Control's class name should be the first in all Forms controls code files.)<br> .</li> </ul></li> <li><p><em><strong>Shift+F12</em></strong><br> => lists all usages </p></li> <li><p><em><strong>Shift+F7</em></strong><br> => switches back to Design View </p></li> </ol> <h1>Which shortcuts are VS and which ones are ReSharper related?</h1> <p>VS: <em>F7, Shift+F7</em><br> ReSharper: <em>Ctrl+[, Shift+F12, Alt+Down, Alt+\, Alt+Ctrl+F</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload