Editing code in VS
The VS IDE has ample powerful editing features and tools that can help developers effectively create and edit their code. Almost all the tools can be found on the main menu system. Here, we'll only introduce the commonly used editing tools and the shortcut keys that can help you to get started. It is recommended to utilize and practice the following shortcuts and keys in your later exercises.
Controlling the caret (input cursor)
The caret is often represented as a blinking vertical line when editing in VS. It indicates the current input point and determines where new text will be entered.
Knowing how to use the keys for caret navigation is an essential editing skill, so let’s find out a bit more about this:
- Up, Down, Left, Right arrow keys: Move the caret up, down, left, or right, respectively
- Home, End: Move the caret to the beginning or the end of a code line, respectively
- Ctrl + Home, Ctrl + End: Move the caret to the beginning...