S
S
Scratch2012-03-20 11:27:23
Java
Scratch, 2012-03-20 11:27:23

Formatting a string in Eclipse after entering a semicolon?

In VS there is a wonderful function - as soon as you put a semicolon, the current line is formatted (indents are aligned)
How would this be fixed in eclipse?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
renskiy, 2012-03-20
@renskiy

The following key combinations are used to automatically format the code of the current line or selected fragment:

  • Ctrl+Shift+F
  • Ctrl+I

How to set up automatic formatting, I do not know, I assume that it does not. Maybe you can find something in the project builder settings?

B
BrightGenie, 2012-03-20
@BrightGenie

you can set formatting to save:
Preferences -> Java -> Editor -> Save Actions
Perform the selected actions on save:
Format Source code:
- Format all lines
- Format edited lines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question