Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio: hotkeys to move line up/down and move through recent changes
    primarykey
    data
    text
    <p>I'm moving from Eclipse to Visual Studio .NET and have found all my beloved hotkeys except two:</p> <ul> <li>in Eclipse you can press <kbd>ALT</kbd>-<kbd>←</kbd> and <kbd>ALT</kbd>-<kbd>→</kbd> to visit recent changes you have made, something I use frequently to go back to where I was in some other file and then return. Apparently in VS.NET the <kbd>CTRL</kbd>-<kbd>-</kbd> and <kbd>CTRL</kbd>-<kbd>SHIFT</kbd>-<kbd>-</kbd> do this but they don't seem to always work (e.g. on laptop, may be a numkey issue with the minus) and don't seem to follow the same algorithm of "where I was" as I am used to in Eclipse. Has anyone gotten this to work and rely on it daily, etc.?</li> <li>in Eclipse, to move a line up or down you press <kbd>ALT</kbd>-<kbd>uparrow</kbd> or <kbd>ALT</kbd>-<kbd>downarrow</kbd> and you just move it through the code until you get it to where you want it, very nice. Also to make a copy of a line, you can press <kbd>SHIFT</kbd>-<kbd>ALT</kbd>-<kbd>uparrow</kbd> or <kbd>SHIFT</kbd>-<kbd>ALT</kbd>-<kbd>downarrow</kbd>. Both of these hotkeys even work for block of lines that you have selected. </li> </ul> <p>Has anyone discovered these hotkey features in Visual Studio .NET?</p> <p><strong>A D D E N D U M :</strong></p> <p>An example of when you would use the second feature described above is to move the bottom line here up into the for loop. In Eclipse, you would put the cursor on the Console.WriteLine and then press ALT-(uparrow), I use that all the time: one key stroke to move lines up and down.</p> <pre><code>for (int i = 0; i &lt; 10; i++) { } Console.WriteLine(i); </code></pre> <p>Ok, extrapolating Charlie's idea with no-selection-ctrl-c to select a line, in Visual Studio you could put your cursor on Console.WriteLine, (no selection) press <kbd>CTRL</kbd>-<kbd>X</kbd> and then move up and press <kbd>CTRL</kbd>-<kbd>V</kbd>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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