Programming workshop (basic level)

Appendix

Code examples

The code examples are in a separate file.

Keyboard shortcuts

A list of often used shortcuts (not complete).

Shift : The key with the (German: "Umschalttaste")

Ctrl : Control key (German: Strg - "Steuerung")

Tab : (horizontal) tabulator

Win : MS-Windows key

Print : German: Druck

Break : German: Pause

MS-Windows

Alt + Tab : Switch to other window

Alt + Shift + Tab : Switch to other window (other direction)

Win + Tab : Switch to other window

Win + Shift + Tab : Switch to other window (other direction)

Win + E : Open file explorer

Win + R : Open the run box

Win + M : Switch to desktop

Win + Shift + M : Switch from desktop back to last app

Ctrl + Alt + Del : Invoking Windows security; start task manager etc.

Win + P : Switch monitor

Ctrl + Alt + arrow key : Monitor orientation

Win + arrow key : Window position and size

Win + Print : Screen shot (to clipboard)

Win + Break : Property page of computer

Alt + keys of the number field: Insert unicode character of this number

Applications (general)

These shortcuts can be used in many applications:

F1 : Help page

Ctrl + C : Copy marked element

Ctrl + X : Cut out marked element

Ctrl + V : Paste marked element

Ctrl + A : Select / mark all

Ctrl + Z : Undo last command

Ctrl + Y : Redo last undo command

Ctrl + Tab : Switch to other tab

Ctrl + Shift + Tab : Switch to other tab (other direction)

Ctrl + S : Save

Alt + F4 : Close app

F5 : Refresh / reload

Ctrl + F : Find text

F3 : Find text (next)

Text editors

Some of these shortcuts apply to text fields in some applications (and webbrowsers) as well.

Shift : Select text (in combination with other keys)

Ctrl + or : Jump to next word

pos1 : Jump to beginnig of line

end : Jump to end of line

Ctrl + pos1 : Jump to top

Ctrl + end : Jump to bottom

Ctrl + H : Find / replace in files

Tab : Insert tabulator (also more lines at once)

Shift + Tab : Remove tabulator (also more lines at once)

Ctrl + F2 : Insert bookmark

Ctrl + K + K : Insert bookmark (older editors)

F2 : Go to bookmark

Ctrl + K + N : Go to next bookmark (older editors)

Also interesting:

Click with your computer mouse into a text field once to position the cursor. Double click: Select a word. Tripple click: Select line or sentence.

(Only in some editors) Pressing Alt while selecting text selects more lines at once and you can insert characters at all selected lines simultaneously.

Visual Studio

F12 : Go to definition / declaration

Ctrl + F12 : Go to definition / declaration

Shift + Alt + F12 : Find symbol

Ctrl + ´ : Go to matching brace

Ctrl + - : Go to last cursor position