
博客链接: http://codeshold.me/2018/02/pycharm_study_notes.html
Pycharm简易教学视频 – Paul Everitt
Tips:
有些快捷键是有问题的
Command(Mac)同Alt(Linux/Windows)
注意PyCharm最下面的提示信息(左下角)
- Coding
⌘+,: Preferences- 非community版本:支持配置remote python interpreter (以及Docker)
- Appearance -> Theme: 设置主题
- Keymap: 设置快捷键
- Plugins: IdeaVim
⌘+J: Insert Live Template- Win/Linux则是
Ctrl+J - 可快速插入代码模版,如
if __name__ == '__main__': Enter: Choose Lookup Item, 选定对应的templateCommand+,–>Live可进行详细的设置
- Win/Linux则是
Alt+Enter: Show Intention Actions- 可以快速修改代码风格,比如将单引号字符串转化为双引号字符串,将字典的literal表示方式转化为constructor表示方式等
- 可以快速创建函数名 function name
- 可以快速 import this name
Ctl+J: Quick Document- 查找手册文档
- View -> Quick Definition / Quick Documentation
Alt+Command+M: Extract -> Method- Win/Linux则是
Ctrl+Alt+M - 快速添加方法定义
- Win/Linux则是
Alt+Shift+Command+T: Refactor
- Navigation
- 文件夹右键点击
Find in Path...可搜索对应目录下所有包含特定字符串的的文件 Command+E: Recent Files- 快捷打开当前目录下的文件
Shift+Shift: Search Everywhere- 快速查找
Command+B: Navigate -> Declaration- 跳转到对应的申明处
Command+A: Select AllAlt+F7: Find UsageCommand+B: Declaration- Win/Linux:
Ctrl+B - 右键->Go To->Declaration
- Win/Linux:
- Bookmarks
Comand+F11: Add bookmarkShift+F11: Show bookmarks
Command+Shift+A: Find All Actions- 可以查询到所有的操作,比如键入
bookmarks
- 可以查询到所有的操作,比如键入
Command+Number: 可以在各窗口之间切换Command+7: Structure Windows
- 文件夹右键点击
- Debugging
Shift+Command+F9: DebugShift+Command+F7: Step Into My CodeShift+Command+T: Navigate -> Test- Win/Linux: Shift+Ctrl+T
Alt+Command+O:Alt+Command+Y: Synchronize- File -> Synchronize
- Win/Windows:
Ctrl+Alt+Y
Shift+Command+A: Find Action- 查找IDE功能的最快捷的方式,比如想要修改字体,则输入Font即可
Shift+Ctrl+A
Ctrl+Tab: Switcher- 多文件之间切换快捷键,加上
Shift可来回切换
- 多文件之间切换快捷键,加上
Command+R: return ‘running’- 重新运行
Alt+Command+L: Reformat Code- 调整代码风格
- Win/Linux:
Ctrl+Alt+L
- Running && Debug Running
- Evaluate Expression:
Alt+F8(Debugger)` 或者 Console->Show Python Prompt
- Evaluate Expression:
版权声明:《PyCharm教学视频学习笔记》由 onephone 在 2018年02月16日写作。著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
文章链接:http://codeshold.me/2018/02/pycharm_study_notes.html

SWF's Hacking Dream 由 onephone 创作,采用 知识共享 署名-非商业性使用 4.0 国际 许可协议进行许可。
© 2011-2019. All rights reserved by onephone. Powerd by Jekyll.




近期评论