How to skip brackets on Netbeans with enter?

So, I programmed in C ++ with Eclipse and had the habit of pressing enter to skip parentheses (anyone who has ever used an eclipse probably knows what I'm talking about).

I recently started learning Java and decided to use NetBeans, mainly because of the much simpler interface.

However, I would like to know if there is a way to skip (), [], <> and "" for login in the same way as in Eclipse in NetBeans.

Thanks.

+4
source share
1 answer

This should be this option:

alt text

Of the general features of the editor :

By default, the IDE automatically inserts matching pairs of brackets, brackets, and quotation marks.
When you enter the opening brace and then press Enter, the closing bracket is added automatically .
For (, [, ", and 'the editor inserts the corresponding pair immediately.
If for some reason this feature is disabled, enable it as follows:
Choose Tools > Options > Editor > Code Completion .
Insert Closing Brackets Automatically checkbox Insert Closing Brackets Automatically .

The editor also highlights matching pairs of brackets, brackets, and quotation marks.
For example, place the cursor in front of any bracket or bracket, and if it has a matching pair, both will be highlighted in yellow.
Single brackets of any type are highlighted in red, and an error sign is displayed in the left margin.
To adjust the highlight colors, select " Tools > Options > Fonts & Colors > Highlighting .

+3
source

Source: https://habr.com/ru/post/1304496/


All Articles