IDEA: “Assign statement to new local variable”?

后端 未结 3 391
孤城傲影
孤城傲影 2020-12-28 12:49

As a long time Eclipse user, I\'m playing around a little bit with IntelliJ IDEA 10. I can\'t seem to find out how to perform an \"Assign statement to new local variable\" c

3条回答
  •  清酒与你
    2020-12-28 13:42

    It's not as nice as Eclipse, but you can try the following:

    new BufferedOutputStream(out)
    
    • Select the expression above, either with your mouse (or by using Ctrl+W).
    • Then hit Ctrl+Alt+V to Introduce a Variable or (Ctrl+Alt+F to Introduce a Field)

提交回复
热议问题