I am new to eclipse IDE.
Can we do following in eclipse for java editor?
{ | | }
How it is configured in eclipse to show vertical lines between matching curly braces in java editor? Is it possible?
Now any file you see you should see a vertical line as print margin, un-check if you want to disable this margin line.
To see a bracket's pair, click to the right of the bracket. Its matching pair will be highlighted. To jump to the matching bracket, press Ctrl+Shift+P.
Java has a "feature" which allows you to omit curly brackets when writing if statements, for loops, or while loops containing only a single statement. You should never use this feature – always include curly brackets. The reason for this is because omitting curly brackets increases your chances of writing buggy code.
Different programming languages have various ways to delineate the start and end points of a programming structure, such as a loop, method or conditional statement. For example, Java and C++ are often referred to as curly brace languages because curly braces are used to define the start and end of a code block.
There are useful plugins. Try: IndentGuide or EditBox
The closest solution I can suggest is:
Click on Eclipse IDE > Window > Preferences > General > Editors > Text Editors
Then click on the link "whitespace characters" to specify what should be shown.
Then enable tick box "Leading and Enclosed" for Tab only and leave the rest unchecked.
This is not perfect solution, but it might be useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With