How to indent a code block?

I use a inconvenient way, as show in gif, is there a better way ?

press ESC key while the cursor is inside the code block, then press Tab or Shift+Tab
indent code block