22

Jul

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.

 Eclipseの便利なキーボードショートカットをご紹介

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.

表1: OS標準のショートカット
メニュー内容macOSWindows
ファイルエディタを閉じる⌘+WCtrl+W
すべてのエディタを閉じる⌘+Shift+WCtrl+Shift+W
保存⌘+SCtrl+S
すべて保存⌘+Shift+SCtrl+Shift+S
印刷⌘+PCtrl+P
編集元に戻す⌘+ZCtrl+Z
やり直し⌘+Shift+ZCtrl+Shift+Z
切り取り⌘+XCtrl+X
コピー⌘+CCtrl+C
ペースト⌘+VCtrl+V
すべてを選択⌘+ACtrl+A
検索/置換⌘+FCtrl+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].