How to remove the empty line Or space between the numbers - eclipse

How to remove the empty line Or space between the numbers on Eclipse as it appears in the attached photo.
Preferences -> Java -> Code Style -> Format

Related

Eclipse won't acknowledge print margin column setting

In Eclipse 4.6.2, I tried to put a print margin indicator line at 80 characters using Preferences -> General -> Editors -> Text Editors -> [Checkbox] Show Print Margin. However, no matter what value I put in the Print Margin Column box, the line stays at column 120.
I'm certain the line I'm looking at is the Print Margin, because I can change its color in the same Preferences page. I've hit Apply and restarted Eclipse, but no luck.
Welcome to bug 468307, where your maximum line wrapping length is what matters.
2020-12-04:
I'm on eclipse-CDT version 2020-06 and the bug is still not fixed IMO.
the workaround is to modify the "Maximum line width" for your language
for example in C++: File --> Window --> Preferences --> C/C++ --> Code Style --> Formatter --> Edit --> Line Wrapping --> Line width and indentation levels --> click the "Maximum line width" textedit widget and modify the value to 80 or 100 or your desired value --> click "ok" (if your "ok" button is gray then read [gotcha-1] footnote)
other languages like Java require modifying the same "Maximum line width" but getting there might be different in the GUI
[gotcha-1]
gotcha: if the "ok" button is gray then you have to edit the "Profile name:" because it does not let you override a default profile.
For the other newcomers here, the line wrapping bug mentioned by #nitind can be solved at:
Preferences -> Language (i.e. C/C++, Java) -> Code Style -> Formatter -> Edit (or create new of your own) -> Line Wrapping (tab) -> Maximum line width

How can I remove this expression?

I recently used this tool so I am bigger.
when I wrote codes, suddenly this expression appeared.
How can I remove this expression?
thank you.
It notice you that is a tab space:
You can change the configuration like this :
Window -> Preferences -> General -> Text Editor.
Then uncheck Show white spaces character

how to auto-increment line numbers in eclipse?

eclipse (ganymede) is not incrementing the line numbers automatically. On creating a new class it prints line number till 6 (6th line contains closing bracket for class). After writing new lines in class, line number is still 6. To get the line numbers updated I again have to go to... show line number -> uncheck it -> apply -> check it again-> apply.
which setting will allow auto incrementation of line number?

How to add quotation marks around selected text in Eclipse

Countless times i have needed to put a quotation marks around text during programming. I remember awhile ago that i have seen someone selecting text and simply do magic with the keyboard shortcuts and putting quotation marks around it. How to do so?
In eclipse
1. Window -> Preferences -> Java -> Editor -> Templates
2. Click on "New"
3. Type "quote" for name (you can name it whatever you want)
4. In the pattern box, enter "${word_selection}"${cursor}
5. Click ok
6. Click apply and close preferences
7. Select the string you want quoted, press CTRL + <space> and type quote

How to add tab space infront of mutiple lines of code

I am using eclipse IDE for development I have written some code in if-else block and now I want to tab indent every block, Is there any way or command or key sequence so that I can select the lines of code and simply add tab space in front of every line selected.
Use the formatter for this. Right click your file and select Source -> Format. You can also execute this for a single code block. Just select the block and right click -> Source -> Format. You can also format Javadoc this way.
If you don't like the way your code gets formatted you can change the formatter template in Windows -> Preferences -> Java -> Code -> Formatter.
Select the block(or set of statements) and just press TAB to indent. The whole selected block(or set of statements) will be moved.