小编mar*_*los的帖子

拉变量Intellij IDEA?

有没有办法用快捷方式将变量拉到try-catch块之外?例如:

从:

try{
    AbstractList<Type> t1 = new ArrayList<Type>();
} catch (Exception e) {
    ...
}
Run Code Online (Sandbox Code Playgroud)

AbstractList<Type> t1;
try{
    t1 = new ArrayList<Type>();
} catch (Exception e) {
    ...
}
Run Code Online (Sandbox Code Playgroud)

refactoring intellij-idea

11
推荐指数
1
解决办法
629
查看次数

标签 统计

intellij-idea ×1

refactoring ×1