gpt4 book ai didi

eclipse - 如何使用 Enter 跳过 Netbeans 上的括号?

转载 作者:行者123 更新时间:2023-12-01 02:57:10 27 4
gpt4 key购买 nike

所以我一直在用 Eclipse 用 C++ 编程,并且有按 Enter 键跳过括号的习惯(任何使用过 Eclipse 的人都可能知道我在说什么)。

我最近开始学习 Java 并决定使用 NetBeans,主要是因为它的界面要简单得多。

但是,我想知道是否有办法跳过 ()、[]、<> 和“”,就像在 NetBeans 中的 Eclipse 中发生的那样。

谢谢。

最佳答案

这应该是这个选项:

alt text

来自 general Editor features :

By default, the IDE automatically inserts matching pairs of braces, brackets, and quotes.
When you type an opening curly brace and then press Enter, the closing brace is added automatically.
For (, [, ", and ', the editor inserts a matching pair right away.
If, for some reason, this feature is disabled, enable it as follows:
Choose Tools > Options > Editor > Code Completion.
Select the Insert Closing Brackets Automatically checkbox.

The editor also highlights matching pairs of braces, brackets and quotes.
For example, place the cursor before any brace 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 the error mark is displayed in the lefthand margin.
To customize the highlight colors, choose Tools > Options > Fonts & Colors > Highlighting.

关于eclipse - 如何使用 Enter 跳过 Netbeans 上的括号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2472941/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com