Spyder基本配置

略坑,一直没有找到代码格式化的工具

1 快捷键

1.1 执行当前行

Tools–>Preferences–>Keyboard shortcuts–>run selection
原:F9
现:Ctrl+Enter

1.2 注释

Tools–>Preferences–>Keyboard shortcuts–>toggle comment
原:Ctrl+1
现:Ctrl+Shift+C
另外,有两个很实用的注释快捷键
1. Ctrl+4 blockcomment

# =============================================================================
# 
# =============================================================================
  1. Ctrl+5 unblockcomment
    鼠标放在前面的注释中间,按此快捷键,删除block comment

猜你喜欢

转载自blog.csdn.net/wendaomudong_l2d4/article/details/80882743
今日推荐