如何在 IntelliJ IDEA 中的某些关键字后自动插入 space?
How to insert a space automatically after certain keywords in IntelliJ IDEA?
我想在某些关键字后自动插入一个 space。例如当键入:
in<return_key> => int<no_space>
然后我必须键入 space 来命名变量,如下所示:
int x = ...;
我希望 IntelliJ 执行以下操作:
in<return_key> => int<space>
现在我 不需要 键入 space 来命名变量,因为 IDE 已经自动插入了它。
(此行为已在 if, for, while ... 中启用)我想使用 primitives 启用此行为, 对象类型。我怎样才能在 IDEA 中做到这一点?
目前没有这样的设置,如果您想输入 int.class
、OuterClass.InnerClass
或 Util.someMethod()
.[=13=,自动 space 插入可能会很烦人]
我想在某些关键字后自动插入一个 space。例如当键入:
in<return_key> => int<no_space>
然后我必须键入 space 来命名变量,如下所示:
int x = ...;
我希望 IntelliJ 执行以下操作:
in<return_key> => int<space>
现在我 不需要 键入 space 来命名变量,因为 IDE 已经自动插入了它。
(此行为已在 if, for, while ... 中启用)我想使用 primitives 启用此行为, 对象类型。我怎样才能在 IDEA 中做到这一点?
目前没有这样的设置,如果您想输入 int.class
、OuterClass.InnerClass
或 Util.someMethod()
.[=13=,自动 space 插入可能会很烦人]