没有缺省定义的直接快捷键,或者就按Ctrl+1按照melord说的那样做,或者自己在Preference/General/Keys自己对Convert Local Variable to Feild进行绑定。
 
追问
public  class A{
public void show {
Person p=new Person();

}
}就比如是这样的,我想把p这个局部变量提升到全局变量,按什么快捷键

相关文章:

  • 2021-08-08
  • 2021-10-20
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2021-10-20
  • 2021-10-30
  • 2022-03-05
  • 2021-09-28
相关资源
相似解决方案