什么是Eclipse相当于IntelliJ"Live模板"?

aka*_*020 14 java eclipse ide intellij-idea live-templates

我的意思是输入"iter"和得到一个"for"循环,选择要迭代的变量,键入"soutv"生成"System.out.println",其中"variable ="已经在......

谢谢 !

aio*_*obe 24

它被称为模板,它发现在,

窗口→首选项→Java→编辑器→模板

在此输入图像描述

"soutv"模板不存在("sysout",并且它类似),但它很容易添加.我使用这种模式:

System.out.println("variable=" + ${cursor}${});
Run Code Online (Sandbox Code Playgroud)