Shifting lines of code to the right or left
You can shift lines of code to the left or right in the C/C++ editor. You can change the tab width in the C/C++ editor preferences window. For more information, see Customizing the C/C++ editor.
To shift lines of code to the right or left:
- In the C/C++ editor, select the full length of the lines that you want to shift.
- Do one of the following:
- To move the text to the right, press Tab.
- To move the text to the right, click Edit > Shift Right.
- To move the text to the left, press Shift+Tab.
- To move the text to the left, click Edit > Shift Left.