StarUML 3 中文文档 快捷键

本文档介绍了StarUML的快捷键使用,包括默认按键映射和如何自定义按键映射。用户可在不同操作系统下创建自定义映射文件,并通过Keymaps获取编辑教程。示例展示了如何将View > Show Grid绑定到特定快捷键。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

快捷键

默认按键映射

命令MacOSWindowsLinux
File > NewCmd+NCtrl+NCtrl+N
File > OpenCmd+OCtrl+OCtrl+O
File > SaveCmd+SCtrl+SCtrl+S
File > Save AsCmd+Shift+SCtrl+Shift+SCtrl+Shift+S
File > PreferencesCmd+,n/an/a
File > QuitCmd+QCtrl+QCtrl+Q
Edit > UndoCmd+ZCtrl+ZCtrl+Z
Edit > RedoCmd+YCtrl+YCtrl+Y
Edit > CutCmd+XCtrl+XCtrl+X
Edit > CopyCmd+CCtrl+CCtrl+C
Edit > Copy Diagram As ImageCmd+Shift+CCtrl+Shift+CCtrl+Shift+C
Edit > PasteCmd+VCtrl+VCtrl+V
Edit > DeleteDeleteDeleteDelete
Edit > Delete from ModelCmd+DeleteCtrl+DeleteCtrl+Delete
Edit > Move UpCmd+Shift+UpCtrl+Shift+UpCtrl+Shift+Up
Edit > Move DownCmd+Shift+DownCtrl+Shift+DownCtrl+Shift+Down
Edit > Select AllCmd+ACtrl+ACtrl+A
Edit > Select In ExplorerCmd+ECtrl+ECtrl+E
Edit > Select In DiagramCmd+DCtrl+DCtrl+D
Format > FontCmd+Shift+FCtrl+Shift+FCtrl+Shift+F
Format > Fill ColorCmd+Shift+ICtrl+Shift+ICtrl+Shift+I
Format > Line ColorCmd+Shift+LCtrl+Shift+LCtrl+Shift+L
Format > Line Style > RectilinearCmd+LCtrl+LCtrl+L
Format > Line Style > ObliqueCmd+BCtrl+BCtrl+B
Format > Line Style > RoundRectCmd+Option+LCtrl+Alt+LCtrl+Alt+L
Format > Line Style > CurveCmd+Option+BCtrl+Alt+BCtrl+Alt+B
Format > Auto ResizeCmd+Shift+RCtrl+Shift+RCtrl+Shift+R
Format > Show ShadowCmd+Shift+HCtrl+Shift+HCtrl+Shift+H
Format > Stereotype Display > NoneCmd+Shift+0Ctrl+Shift+0Ctrl+Shift+0
Format > Stereotype Display > LabelCmd+Shift+1Ctrl+Shift+1Ctrl+Shift+1
Format > Stereotype Display > DecorationCmd+Shift+2Ctrl+Shift+2Ctrl+Shift+2
Format > Stereotype Display > Decoration LabelCmd+Shift+3Ctrl+Shift+3Ctrl+Shift+3
Format > Stereotype Display > IconCmd+Shift+4Ctrl+Shift+4Ctrl+Shift+4
Format > Stereotype Display > Icon LabelCmd+Shift+5Ctrl+Shift+5Ctrl+Shift+5
Format > Word WrapCmd+Shift+WCtrl+Shift+WCtrl+Shift+W
Format > Show VisibilityCmd+Shift+VCtrl+Shift+VCtrl+Shift+V
Format > Show NamespaceCmd+Shift+NCtrl+Shift+NCtrl+Shift+N
Format > Show PropertyCmd+Shift+PCtrl+Shift+PCtrl+Shift+P
Format > Show TypeCmd+Shift+YCtrl+Shift+YCtrl+Shift+Y
Format > Show MultiplicityCmd+Shift+MCtrl+Shift+MCtrl+Shift+M
Format > Show Operation SignatureCmd+Shift+GCtrl+Shift+GCtrl+Shift+G
Format > Suppress AttributesCmd+Shift+ACtrl+Shift+ACtrl+Shift+A
Format > Suppress OperationsCmd+Shift+OCtrl+Shift+OCtrl+Shift+O
Format > Suppress ReceptionsCmd+Shift+ECtrl+Shift+ECtrl+Shift+E
Format > Suppress LiteralsCmd+Shift+TCtrl+Shift+TCtrl+Shift+T
Format > Suppress ColumnsCmd+Shift+UCtrl+Shift+UCtrl+Shift+U
Model > FindCmd+FCtrl+FCtrl+F
View > Close DiagramF4F4F4
View > Close Other DiagramsCmd+F4Ctrl+F4Ctrl+F4
View > Close All DiagramsShift+F4Shift+F4Shift+F4
View > Next DiagramCmd+Shift+]Ctrl+Shift+]Ctrl+Shift+]
View > Previous DiagramCmd+Shift+[Ctrl+Shift+[Ctrl+Shift+[
View > Zoom InCmd++Ctrl++Ctrl++
View > Zoom OutCmd+-Ctrl+-Ctrl+-
View > Actual SizeCmd+0Ctrl+0Ctrl+0
View > Fit To WindowCmd+Option+1Ctrl+Alt+1Ctrl+Alt+1
View > Show GridCmd+GCtrl+GCtrl+G
View > SidebarCmd+1Ctrl+1Ctrl+1
View > NavigatorCmd+2Ctrl+2Ctrl+2
View > ToolbarCmd+3Ctrl+3Ctrl+3
View > StatusbarCmd+4Ctrl+4Ctrl+4
View > ToolboxCmd+5Ctrl+5Ctrl+5
View > EditorsCmd+6Ctrl+6Ctrl+6
View > Diagram ThumbnailsCmd+Option+TCtrl+Alt+TCtrl+Alt+T
View > Markdown DocumentationCmd+Option+DCtrl+Alt+DCtrl+Alt+D
View > MinimapCmd+Option+MCtrl+Alt+MCtrl+Alt+M
View > RelationshipsCmd+Option+RCtrl+Alt+RCtrl+Alt+R
Debug > Show DevToolsShift+Option+TShift+Alt+TShift+Alt+T
Debug > ReloadCmd+RCtrl+RCtrl+R

制作自定义按键映射

若要制作自定义按键映射,可以在用户配置路径创建 keymap.json :

  • Mac OS : /Users/<user>/Library/Application Support/StarUML .
  • Windows :C:\Users\<user>\AppData\Roaming\StarUML .
  • Linux : ~/.config/StarUML .

可以在 Keymaps 获取如何编辑按键映射文件 (keymap.json) 。

这是一个例子:

{
  "cmdctrl-alt-1": null,
  "cmdctrl-alt-g": "view:show-grid"
}

首个条目是发布 Ctrl+Alt+1 (Cmd+Option+1 in MacOS) 按键绑定,第二个条目是更改按键绑定 View > Show Grid (Command ID is view:show-grid) 为 Ctrl+Alt+G (Cmd+Option+G in MacOS).

若要了解全部命令 ID, 在 Console 输入以下表达式 (Debug > Show DevTools > Console tab).

Object.keys(app.commands.commands)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值