# Shifting lines of code left and right

To shift lines of code to the right (i.e. indent):

- Select the lines you wish to shift right
- Do one of the following:
  - Press `Tab` or
  - Select Source > Shift Right from the menu bar

To shift lines of code to the left (i.e. outdent):

- Select the lines you wish to shift left
- Do one of the following:
  - Press `Shift+Tab` or
  - Select Source > Shift Left from the menu bar

Java editor

Using the Java editor

Source menu