1.speder中的快捷键
编辑器中
Tab/Shift+Tab:代码缩进/撤销代码缩进
Ctrl+1:注释/撤销注释
Ctrl+4/5:块注释/撤销块注释
Ctrl+L:跳转到行号
F5: 运行脚本
F9: 运行选中部分代码
Ctrl+Enter: 运行单元
F11:全屏
Ctrl+Alt+up/down: 向上/下复制选中代码
Ctrl+R: 替换
Ctrl+G:跳转到方法定义处
Ctrl+I: 查看当前对象(比如输入一个方法,就可在help窗口看到该方法的文档,如果有的话)
Ipython Console中
Ctrl+L或%clear: 清空屏幕内容(等价于matlab的clc)
Ctrl+I: 查看当前对象(比如输入一个方法,就可在help窗口看到该方法的文档,如果有的话)
(注:在spyder导航栏Tools-Preferences-Keyboard shortcut中有所有的快捷键)
所有快捷键







常用快捷键快捷键中文名称Ctrl+R替换文本Ctrl+1单行注释,单次注释,双次取消注释Ctrl+4块注释,单次注释,双次取消注释F5运行程序Ctrl+P文件切换Ctrl+L清除shellCtrl+I查看某个函数的帮助文档Ctrl+Shift+V调出变量窗口Ctrl+up回到文档开头Ctrl+down回到文档末尾全部快捷键contextnameshortcut中文名称-close pageCtrl+Shift +F4关闭页面-configureCtrl+F6配置-debug continueCtrl+F12继续调试-debug exitCtrl+Shift+F12调试退出-debug step intoCtrl+F11调试进入函数-debug step overCtrl+F10调试跳出函数-debug step returnCtrl+Shift+F11调试返回-debugCtrl+F5调试-file switcheCtrl+P文件切换-find nextF3查找下一个文件-find previousShift+F3找到以前的文件-find textCtrl+F找到文本-fullscreen modeF11全屏模式-hide find and replaceEShiftCtrl隐藏查找和替换-layout preferencesAlt+Shift+P布局的设置-lock unlock panesCtrl+Shift+F5锁解锁窗格-maximize paneCtrl+Alt+Shift+M最大化窗格-prefernecesCtrl +Alt +Shift+P偏好-quitCtrl +Q退出-re-run last scriptF6最后重新运行脚本-repalce textCtrl +R替换文本-restartAlt +Shift+R重新启动-runF5运行-save current layoutAlt +Shift+ S保存当前的布局-show toolbarsAlt +Shift+T显示工具栏-spyder documentationF11spyder的文档-switch to breakpointsCtrl +Shift+B切换到断点-switch to consoleCtrl +Shift+C切换到控制台-switch to editorCtrl +Shift+E切换到编辑器-switch to explorerCtrl +Shift+X切换到浏览器-switch t find_in_filesCtrl +Shift+F切换到 find_in_files-switch to helpCtrl +Shift+H切换到帮助-switch to historylogCtrl +Shift+L切换到historylog-switch to ipython_consoleCtrl +Shift+I切换到ipython_console-switch to onlinehelpCtrl +Shift+D切换到onlinehelp-switch to outline_explorerCtrl +Shift+O切换到outline_explorer-switch to project_explorerCtrl +Shift+P切换到project_explorer-switch to variable_explorerCtrl +Shift+v切换到variable_explorer-symbol finderCtrl +Alt +P符号查找器-use next layoutAlt +Shift+PageDoen使用下一个布局-use previous layoutAlt +Shift+PageUp使用上一个布局array_builerenter array inlineCtrl +Alt +M进入array内联array_builerenter array tableCtrl +M进入array表consoleclear lineShift+Esc清除行consoleclear shellCtrl +L清除shelleditorinspect current objectCtrl +I检查当前对象editorbreakpointF12断点editorblockcommentCtrl +4editorclose allCtrl +Shift+W关闭所有editorclose file 1Ctrl +W关闭文件1editorclose file 2Ctrl +F4关闭文件2editorcode completionCtrl +Space代码自动完成editorconditional breakpointSF12条件断点editorcopy lineCtrl +Alt +Down复制行editorcopy lineCtrl +C复制行editorcutCtrl +X减少editordelete lineCtrl +D删除一行editordelete lineDel删除一行editorduplicate lineCtrl +Alt +Up重复的行editorend of documentCtrl +Down最终的文档editorend of lineMeta + E每行的最后editorgo to definitionCtrl +G去定义editorgo to lineCtrl +L去行editorgo to next fileCtrl +Shift+Tab去下一个文件editorgo to previous fileCtrl +Tab去之前的文件editorinspect current objectCtrl +I检查当前对象editorkell next wordMeta+D清楚下一个单词editorkill previous wordMeta+B清除上一个单词editorkill to line endMeta+K清楚行的终点editorkill to line startMeta+U清除行的开始editorlast edit locationCtrl +Alt +Shift+L最后编辑位置editormove line downAlt +Down线向下移动editormove line upAlt +Up线向上移动editornew fileCtrl +N新建文件editornext charMeta+F下一个单词editornext cursor positionCtrl +Alt +Right下一个光标位置editornext lineMeta+N下一行editornext wordMeta+Right下一个词editoropen fileCtrl +O打开的文件editoropen last closedCtrl +Shift+T打开上次关闭editorpasteCtrl +V粘贴editorprevious charMeta+B之前的字符editorprevious cursor positionCtrl +Alt +L前一光标位置editorprevious lineMeta+P前一行editorprevious wordMeta+L以前的单词editorredoCtrl +Shift+Z重做editorrotate kill ringMeta+Shift+Y旋转杀死环editorrun cell and advanceShift+R细胞和推进editorrun cellCtrl +R运行单元editorrun selectionF9选择运行editorsave allCtrl +Alt +S保存所有editorsave asCtrl +Shift+S另存为editorsave fileCtrl +S保存文件editorselect allCtrl +A选择所有editorshow/hide outlineCtrl +Alt +O显示/隐藏轮廓editorstart of documentCtrl +U开始的文档editorstart of lineMeta+A开始行editortoggle commentCtrl +1切换的评论editortransform to lowercaseCtrl +U转换为小写字母editortransform to uppercaerCtrl +Shift+U变换大写字母editorunblockcommentCtrl +F5unblockcommenteditorundoCtrl +Z撤销editoryankMeta+Y猛拉editorzoom in 1Ctrl ++放大1editorzoom in 2Ctrl +=放大2editorzoom outCtrl +-缩小editorzoom resetCtrl +0变焦重置ipython_consolenew tabCtrl +T新标签页ipython_consolereset namespaceCtrl +Alt+R重置名称空间ipython_consolereset kernelCtrl +.重置内核profilerrun profilerF10运行分析器pylintrun analysisF8运行分析variable_explorercopyCtrl +C复制————————————————版权声明:本文为CSDN博主「知道不_zkl」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/weixin_41500849/article/details/80298944
浙公网安备 33010602011771号