Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/691151cc-3da4-800f-9b7c-81b0e0d10369
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: 非常に鋭い質問です 👍 === 非常に鋭い質問です 👍 Eclipse には すでに多数のショートカットが割り当てられている ため、空いているキーを見つけるのは重要です。 以下の手順で、現在どのキーが使われているか確認し、空いている組み合わせを探すことができます。 ==== ### ==== メニューから: <syntaxhighlight>ウィンドウ(Window) → 設定(Preferences) </syntaxhighlight> ===== 左メニューから: ===== <syntaxhighlight>一般(General) → Keys </syntaxhighlight> を選択します。 ここで現在登録されているすべてのショートカット(キーバインド)が一覧表示されます。 ===== 上部に「Filter(フィルター)」欄があります。 ===== そこに使いたいキー(例:Ctrl+Shift+A)を入力します。 → そのキーが すでに他のコマンドに割り当てられている場合、一覧に表示されます。 ===== - 試したいキー(例:Ctrl+Alt+K など)を順に入力して検索し、 「No matches found(該当なし)」となれば 未使用キー です。 ===== * よく空いている組み合わせ例: - Ctrl+Alt+L - Ctrl+Shift+Y - Alt+Shift+; - Ctrl+Shift+Enter - Ctrl+Alt+/ ===== もし既存のキーと競合しても、自分のプラグインを優先させたい場合は: ===== plugin.xml の <key> 要素に以下を追加します👇 <syntaxhighlight lang="xml"><key commandId="com.example.aiassist.commands.request" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M1+M2+L" platform="win32" locale="en_US" bindingConflict="override"> </key> </syntaxhighlight> ただし、この bindingConflict="override" は公式には非推奨です。 安全策としては、別の未使用キーを選ぶ方が良いです。 ==== <syntaxhighlight lang="xml"><key ==== commandId="com.example.aiassist.commands.request" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M1+M2+Y"> </key> </syntaxhighlight> これで Ctrl+Shift+Y に変更されます。 ==== もし複数環境(Windows / macOS)で使いたい場合は、 ==== プラットフォーム別に <key> を分けてもOKです: <syntaxhighlight lang="xml"><key sequence="M1+M2+Y" platform="win32" .../> <key sequence="M1+M2+J" platform="macosx" .../> </syntaxhighlight> ==== | | | ==== | --- | --- | | | | | | | | | | | | | もしよければ、'''未使用キー候補リスト(Windows用/Mac用)'''をこちらで自動スキャンして提案することもできますが、行ってみますか?
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)