俗话说:工欲善其事必先利其器,IDE的快捷键对应程序员至关重要,可以大幅度提高编码调试的速度。JetBrains全家桶的快捷键都差不多,下边介绍下Pycharm常用快捷键,尽管每次启动该程序都会popup弹框,告诉我们如何使用,详细大多数人还是熟视无睹的。
按照开发使用频率和方便度依次为:
总入口:
Help | Tip of the Day 快捷键文档目录打开,即使启动程序后关闭了导航也可以找到
Ctrl+Shift+Backspace 与Ctrl+Alt+左键 类似
Ctrl+Shift+向上箭头 or Ctrl+Shift+向下 select a code fragment and press 光标放到某一行 将代码上移下移
Ctrl+B or Ctrl+鼠标左键 点进去声明
Ctrl+Q (View | Quick Documentation).
Ctrl+F12 (Navigate 文件有哪些function
Alt+F1(Project view, Structure view or other)比如搞出file structure 及其有用,有点像结构导航了
Ctrl+Shift+F7 高亮某个变量 F3可以快速跳转
Shift+F6 (Refactor | Rename)
Local History | Show History 查看历史改动
Alt+向上箭头 and Alt+向下箭头 keys to quickly move between methods in the editor
Ctrl+P brings up a list of valid parameters在函数参数传递时
Ctrl+N (Navigate | Class
Ctrl+Shift+J shortcut joins two lines into one and removes unnecessary spaces to match your code style.
Ctrl+E (View | Recent Files 最近打开文件
“乐分享从我做起!方便他人,改变自己!!”,如果你觉得有帮忙请帮忙点赞转发吧,谢谢关注。