Author Topic: Inline function editor keyboard shortcuts  (Read 7342 times)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Inline function editor keyboard shortcuts
« on: March 14, 2022, 12:38:14 AM »
Within the inline function editor (for both C# and VB.NET), the following keyboard shortcuts are available:

Ctrl Up/Down Arrow keys - Scroll the contents of the editor (as you would with the mouse wheel or the scroll bar)
Ctrl Left/Right Arrow keys - Jump cursor between words
Ctrl Shift Left/Right Arrow keys - Select entire words

Shift Up/Down Arrow keys - Select from the cursor position on the current line, move the cursor to the same position (or nearest possible if not available) on the same line, and select everything in-between
Shift Alt Up/Down/Left/Right Arrow keys, or Left Mouse Button - Rectangle select (over multiple lines)
Holding Alt and Shift while clicking the Left Mouse Button in another position will attempt to rectangle select from the current position of the text cursor, to the position clicked with the mouse. Clicking and dragging is also possible.
Holding Alt by itself, and left-clicking and dragging (dragging is mandatory in this case) the mouse cursor over text, will instead start the rectangle selection at the point clicked with the mouse.

Home - Jump the cursor to leftmost position of the current line, or the start of non-whitespace characters on that line
Shift Home - Select from the current cursor position to the leftmost position on the current line, or the start of non-whitespace characters on that line
Ctrl Home - Jump the cursor (and scroll) to the leftmost position of the first line in the editor (I.E. line 1)
Ctrl Shift Home - Select from the current cursor position to the leftmost position of the first line in the editor (I.E. line 1)
Alt Home - Jump the cursor to leftmost position of the current line
Alt Shift Home - Select from the current cursor position to the leftmost position on the current line

End - Jump the cursor to rightmost position of the current line
Shift End - Select from the current cursor position to the rightmost position on the current line
Ctrl End - Jump the cursor (and scroll) to the rightmost position of the last line in the editor
Ctrl Shift End - Select from the current cursor position to the rightmost position of the last line in the editor
Alt End - Jump the cursor to rightmost position of the current line (seems identical to just pressing End)
Alt Shift End - Select from the current cursor position to the rightmost position on the current line (seems identical to just pressing Shift End)

PageUp - Jump the cursor up a page (a "page" being the lines vertically visible on screen; this depends on the size of the window)
Shift PageUp - Select an entire page upward
Alt Shift PageUp - Rectangle select the distance of a page upward

PageDown - Jump the cursor down a page (a "page" being the lines vertically visible on screen; this depends on the size of the window)
Shift PageDown - Select an entire page downward
Alt Shift PageDown - Rectangle select the distance of a page downward

Shift Delete - Cut
Ctrl Delete - Delete word to the right of the cursor
Ctrl Shift Delete - Delete the rest of the line to the right of the cursor

Ctrl Backspace - Delete word to the left of the cursor
Ctrl Shift Backspace - Delete the rest of the line to the left of the cursor
Alt Backspace - Undo

Shift Insert - Paste
Ctrl Insert - Copy

Ctrl Z - Undo
Ctrl Y - Redo
Ctrl X - Cut
Ctrl C - Copy
Ctrl V - Paste
Ctrl A - Select all

Tab while multiple lines are selected - Increase indentation
Shift Tab while multiple lines are selected - Decrease indentation (also works when the cursor is placed in existing whitespace at the start of a line)

Ctrl Num+ - Zoom in
Ctrl Num- - Zoom out
Ctrl Num/ - Reset zoom

Ctrl L - Cut current line, or all lines currently selected
Ctrl Shift L - Delete current line, or all lines currently selected
Ctrl Shift T - Copy current line, or all lines currently selected
Ctrl T - Transpose (swap) current line with the line above it

Ctrl U - Make selected characters uppercase (if applicable)
Ctrl Shift U - Make selected characters lowercase (if applicable)


The following shortcuts use keys that may have a different location and/or symbol than the character shown (characters apply to the US keyboard layout).
If you are not using the US keyboard layout, you can use this website to view your keyboard layout, select "Virtual keys" in the "Legend overlay" dropdown, and check which physical key the keycode shown here in parentheses corresponds to.

Ctrl [ (OEM 4) - Move cursor up one paragraph
Ctrl ] (OEM 6) - Move cursor down one paragraph

Ctrl Shift [ (OEM 4) - Select paragraph downward
Ctrl Shift ] (OEM 6) - Select paragraph upward

Ctrl / (OEM 2) - Jump cursor leftward between partial words (very similar to Ctrl Left/Right Arrow keys, except where that will jump over "GetText", for example, this would jump into it and consider "Get" and "Text" partial words)
Ctrl \ (OEM 5) - Jump cursor rightward between partials words
Ctrl Shift / (OEM 2) - Select partial words leftward
Ctrl Shift \ (OEM 5) - Select partial words rightward