使用NetBeans IDE提供的代码快速完成功能,可以大大节省我们编写代码的时间。比如想要输System.out.println(" ");这条语句,我们只需要输入sout 然后按一次Tab键,IDE就会自动帮我们完成System.out.println(" ");语句。除了sout还有很多,下面列举了一些常用的缩写模板,另外还可以定义自己的代码缩写模板。
缩写 代码模板
En Enumeration
Ex Exception
Ob Object
Psf public static final
Psfb public static final boolean
Psfi public static final int
Psfs public static final String
St String
ab abstract
bo boolean
br break
ca catch (
cl class
cn continue
df default:
dowhile
do {
} while (condition);
eq equals
ex extends
fa false
fi final
fl float
forc
for (Iterator it = collection.iterator(); it.hasNext();) {
Object elem = (Object) it.next();
}
fore
for (Object elem : iterable) {
}
fori
for (int i = 0; i < SCRAMBLED_WORD_LIST.length; i++) {
}
fy finally
ie interface
ifelse
if (condition) {
} else {
}
im implements
iof instanceof
ir import
le length
newo
Object name = new Object(args);
pe protected
pr private
psf private static final
psfb private static final boolean
psfi private static final int
psfs private static final String
pst printStackTrace();
psvm
public static void main(String[] args) {
}
pu public
re return
serr System.err.println("|");
sout System.out.println("|");
st static
sw switch (
sy synchronized
tds Thread.dumpStack();
th throws
trycatch
try {
} catch(Exception e) {
}
tw throw
twn throw new
wh While (
whilei
while (it.hasNext()) {
Object elem = (Object) it.next();
}
分享到:
相关推荐
Apache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64....
NetBeans的默认快捷键和代码模板-快速参考,和myeclipse有很多不一样的快捷键,看看吧,挺实用的!
NetBeans包括开源的开发环境和应用平台,NetBeans IDE可以使开发人员利用Java平台能够快速创建Web、企业、桌面以及移动的应用程序,NetBeans IDE已经支持PHP、Ruby、JavaScript、Groovy、Grails和C/C++等开发语言。
Apache-NetBeans-12.4-bin-windows-x64.exe
netbeans-7.4-cpp-linux.sh
Java实验工具2(netbeans-6.8m2-ml-javase-windows)
netbeans-7.2-ml-php-windows.zip 代码编辑工具 netbeans-7.2-ml-php-windows.zip 代码编辑工具
netbeans-6.9.1-ml-windows.part1
由于公司外网限制。需要的朋友可以搜索NetBeans-7.4-JavaSE-Windows。一起两个分卷。(仅Java)
netbeans-7.3-javase-windows
netbeans-7.1.2-ml-javaee-windows.part4
netbeans-7.1.2-ml-javaee-windows.part2
netbeans-6.9.1-ml-javase-windows 第一个包,分三个包
netbeans-7.1-ml-php-windows
Apache NetBeans 12.1 was released on September 1, 2020.
Apache-NetBeans-11.1-bin-windows-x64 WIDNOWS 64位系统安装文件,java编程IDE。
org-netbeans-api-debugger-jpda.jar netbeans 文件
netbeans-7.4-javase-windows
NetBeans IDE is an integrated development environment (IDE) for writing, compiling, testing, and debugging software applications for the JavaTM platform and other environments. NetBeans IDE includes a...
NetBeans 是开源软件开发集成环境,是一个开放框架,可扩展的开发平台,可以用于 Java 等语言的开发,适用于Windows系统。