2

Is there a hotkey to automatically set indentation and format code in Eclipse Theia?

I tried the hot keys of Eclipse (Ctrl + Shift + F) and VS Code (Alt + Shift + F), but neither of these work.

In case it helps, I am writing code in Rust.

Yoann F
  • 96
  • 5
  • In Eclipse it's Ctrl+I (if that was the reason why you tagged the question as Eclipse). – howlger May 31 '20 at 11:50
  • Probably not clear enough in my question : I would set the indentation and the code format on the whole file (or in a selection). It 's not only the indentation of one only block which I would achieve. – Yoann F Jun 01 '20 at 07:43

2 Answers2

0

yes, there is a hotkey for that.

To trigger the shift right/left action in Theia select a block of code and use the shortcut cuts are Tab and Shift+Tab.

0

ctrl + shift + i on my build

file -> preferences -> open keyboard shortcuts , "format document"