Introducing convenient keyboard shortcuts of Eclipse
OS standard shortcut that is the basis of keyboard shortcuts
OSs that can operate mouse, such as Windows or MacOS, can select the application from the menu by mouse operation when you have some processing, for example, preserving files.It is intuitive and easy to operate, but once you get used to it, you will want to do it only by keyboard key operation.This is the so -called keyboard shortcut.
Like other desktop applications, the menu is described on the menu for what Eclipse can be selected from the menu.For example, Fig. 1 shows the file menu while editing the source file.
If you want to save the current edited file, click the toolbar icon or select Save from the File menu.On the other hand, a keyboard shortcut is assigned to the [Save] menu, and as shown in Fig. 1, it is [⌘ (Command)]+[S], and in Windows, [Ctrl]+[S].
However, this preserved shortcut is common to other applications, so to speak, so to speak, OS standard shortcuts, so I think some Eclipse users have already used.
In this way, the OS standard shortcuts can be used in Eclipse in principle.Table 1 summarizes the main ones.
メニュー | 内容 | macOS | Windows |
---|---|---|---|
ファイル | エディタを閉じる | ⌘+W | Ctrl+W |
すべてのエディタを閉じる | ⌘+Shift+W | Ctrl+Shift+W | |
保存 | ⌘+S | Ctrl+S | |
すべて保存 | ⌘+Shift+S | Ctrl+Shift+S | |
印刷 | ⌘+P | Ctrl+P | |
編集 | 元に戻す | ⌘+Z | Ctrl+Z |
やり直し | ⌘+Shift+Z | Ctrl+Shift+Z | |
切り取り | ⌘+X | Ctrl+X | |
コピー | ⌘+C | Ctrl+C | |
ペースト | ⌘+V | Ctrl+V | |
すべてを選択 | ⌘+A | Ctrl+A | |
検索/置換 | ⌘+F | Ctrl+F |
I will add some supplements.First, the screen that closes with [⌘]+[W] or [Ctrl]+[W] is the only window on the editor.Eclipse itself does not end.In other Windows applications, the application window itself closes with [Ctrl]+[W] and the application itself ends.But be aware that Eclipse is not taking such behavior.
The shortcut that ends Eclipse itself is only in the Mac version, [⌘]+[Q].However, this is also an OS standard shortcut.For Windows, close the Eclipse screen itself by the mouse, or select End from the File menu.
In addition, [⌘]+[Z] and [Ctrl]+[Z] of "Return" are common to most applications, but for "redo", Eclipse is as shown in Table 1.⌘]+[Shift]+[Z] or [Ctrl]+[Shift]+[Z].Please note that depending on the application, there are [⌘]+[y] or [Ctrl]+[y].