NetBeans 6.0中的缩写展开快捷键

 之前用的一直是NetBeans 5.5,其中的快捷键是空格。但是最近NetBeans 6.0简体中文版出来之后,就升级用6.0的版本。发现输入缩写之后按空格居然不展开了,开始还想“难不成NetBeans 6.0把这么一个好的功能给去掉了?”。

      鼓捣了一会,才发现在NetBeans 6.0里,默认的展开键是Tab,要换成空格其实也很好办。

     进入“工具——选项——编辑器——代码模板”,在最下面的展开模板中选择Space,然后保存即可。

     哈哈,原本熟悉的缩写展开快捷键又回来了~

源代码编辑器中用于 Java 文件的缩写

缩写

扩展

ab
abstract
bo
boolean
br
break
ca
catch {
cl
class
cn
continue
df
default;
dowhile
do {
    ${cursor}
} while (${condition});
En 
Enumeration
eq
equals
Ex 
Exception
ex
extends
fa 
false
fi 
final
fl 
float
forc
for (Iterator it = collection.iterator(); it.hasNext();) {
    Object elem = (Object) it.next();

 
}
fore
for (Iterator it = collection.iterator(); it.hasNext();) {
    Object elem = (Object) it.next();

 
}
fori
for (int i = 0; i < ${arr array}.length; i++) {
    ${cursor}
}
fy 
finally
ie 
interface
if
if (${condition}) {
    ${cursor}
} else {

 
}
im 
implements
iof 
instanceof
ir 
import
le
length
newo
Object name = new Object(args);
Ob 
Object
pe 
protected
pr 
private
psf 
(或 Psf
private static final
psfb 
(或 Psfb
private static final boolean
psfi 
(或 Psfi
private static final int
psfs 
(或 Psfs
private static final String
pst 
printStackTrace();
psvm
public static void main(String[] args) {
    ${cursor}
}
pu 
public
re 
return
serr 
System.err.println ("
sout 
System.out.println ("
St 
String
st 
static
sw 
switch (
sy 
synchronized
tds 
Thread.dumpStack();
th 
throws
trycatch
try {
    ${cursor}
}catch (Exception e) {

 
}
tw 
throw
twn 
throw new
wh 
While (
whilei
while (it.hasNext()) {
    Object elem = (Object) it.next();
    ${cursor}
}
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值