JetBrains macOS下快捷键 & 设置-不断完善……

JetBrains macOS下快捷键 & 设置-不断完善……

操作 说明 mac按键
Reformat Code 代码格式化。 ⌥ + ⇧ + F
Rename 重命名(字段/文件名)。 ⌘ + R
Close Other Tabs 关闭编辑栏中其他文件。 ⌘ + ⇧ + W
Move Line Up 整行往上一行移动。 ⌥ + ↑
Move Line Down 整行往下一行移动。 ⌥ + ↓
Move Caret to Text Start 将光标移动到文本的第一行。 ⌘ + ↑
Move Caret to Text End 将光标移动到文本的最后一行。 ⌘ + ↓
Find Usages 查看字段/函数/方法的引用的地方。 ⌘ + D

按键说明

  • ⌘ command:命令键
  • ⌥ option:可选键
  • ⌃ control:控制键
  • ⇧( shift )
  • ⇪( caps lock )
  • ⌃( control )
  • ↩( return )
  • ⌅( enter )???
设置 说明
Editor > General > Soft Wraps these fiels: 追加 *.go 启用软换行。
Editor > Code Style > Go > Use tab character 取消勾选 不使用Tab,用空格。
Editor > General > Code Folding > Fold by default 取消勾选 Go>One line returns/panics/Format strings 取消打开文件后,自动压缩代码
原文地址:https://www.cnblogs.com/sweetXiaoma/p/14399793.html