pycharm快捷键

一、快捷键

注释:
  注释: win:ctrl + /      mac:command + /(选中多⾏后可以批量注释)
  取消注释:注释后,再次按使⽤取消注释(选中多⾏后可以批量取消注释)

缩进

  缩进:Tab   (选中多⾏后可以批量缩进)
  取消缩进:Shift + Tab  (选中多⾏后可以批量取消缩进)
 
代码补全
  win:shift+ ctrl + enter
  mac:shift+ command + enter
格式化代码
  win:ctrl + alt + l
  mac:command + option + l
换⾏
  下⼀⾏:shift + enter
  上⼀⾏:win:ctrl + alt + enter    mac:command + option + enter
复制代码
  win:ctrl + d
  mac:command + d
删除代码
  win:ctrl + x
  mac:command + x
查找
  ctrl/command + f
全局查找
  ctrl/command +shift + f(万能查找,⽂件、⽅法、变量等都能搜索)
快速按shift两次
智能提示(⾃动导⼊,安装,解决提示)
  win:alt + enter
  mac:option + enter
代码换位
  ctrl/command + shift + 上下键
进⼊某个⽅法或者类
  ctrl/command + ⿏标左键
posted @ 2024-08-30 13:48  稻草人&梦想  阅读(197)  评论(0)    收藏  举报