Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Home key go to start of line in Visual Studio?

Tags:

Where is the option in Visual Studio to make the Home key go to the start of the line?

Right now you have to do

Home,Home

or

Home, Ctrl+Left Arrow

i'd prefer that home goes to the start of the line. i saw it before, but now i cannot find it.

like image 766
Ian Boyd Avatar asked Sep 17 '08 14:09

Ian Boyd


People also ask

How do you get to the beginning of a line VS Code?

CTRL + J/L : Move cursor to start/end of line. ALT + SHIFT + O : Mark characters from cursor to end of line. ALT + SHIFT + U : Mark characters from cursor to start of line. CTRL + I/K : Add cursor on line above/below the current cursor position.

How do you go to a specific line in Visual Studio?

The Go To Line dialog box lets you move to a specific line in the active document. To access this dialog box, open a document for editing, and then select Edit > Go To > Go To Line or press Ctrl+G.

How do you jump to a function in Visual Studio?

I found one trick in visual studio: Place the cursor on the empty to get the context (name of the function), copy the name of the function, then click the drop down arrow where all functions will be listed, paste the function name, enter. Then you are at the beginning of that function!

How do you jump to end of line VS Code?

Highlight the row and press ENTER. Press Shift + Space.


2 Answers

In Tools/Customize/Keyboard, Reassign the "Home" key from Edit.LineStart" to "Edit.LineFirstColumn"

Edit by OP: You must change Scope to Text Editor before this will work.


Visual Studio 2010

Visual Studio 2010 removed the "scope" option. Instead you want the "Use new shortcut in" option:

enter image description here

like image 82
James Curran Avatar answered Sep 18 '22 09:09

James Curran


From asking the same question on MSDN forums:

TaylorMichaelL said:

The command you are interested in is Edit.LineFirstColumn. You'll want to change the scope to be the Text Editor. You should remove any existing shortcut key associated with the command first. If you don't change the scope then the Home key won't work. Then try using the Home key. It should work.

Michael Taylor - 9/18/08 http://p3net.mvps.org

Changing the Scope to Text Editor was the missing piece in the puzzle.

  • Go to Tools/Customize/Keyboard
  • Change Scope to "Text Editor".
  • Reassign the "Home" key from Edit.LineStart to Edit.LineFirstColumn
like image 32
Ian Boyd Avatar answered Sep 19 '22 09:09

Ian Boyd