It uses the Formatting API so use the following command for formating:
- On Windows Shift + Alt + F
- On Linux Ctrl + Shift + I
- On Mac Shift + Option + F
It is recommended to use Insert Spaces
for the best possible experience.
- Handles spaces between operators, brackets, and so on.
- Handles horizontal spacing.
- Edit formatting settings to your preferences.
Before | After |
---|---|
if( i==k){} ; |
if (i == k) {}; |
int k=i&1; |
int k = i & 1; |
if (i == k && i != 0) myFunction(); |
if (i == k && i != 0) myFunction(); |