Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354778

Summary: Add Ctrl+/ as keyboard shortcut for Toggle Comment
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Zhi Zhu <zhuzhi>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Keyboard shortcuts defined by Eclipse none

Description broy2 CLA 2011-08-15 17:34:15 EDT
Build Identifier: EDT M2 + CDL

Ctrl+/ is more familiar than Ctrl+7.
Eclipse allows both.
See screen capture.

Reproducible: Always

Steps to Reproduce:
1. Open A .egl file.
2. Ctrl+/ to comment a line doesn't do anything.
3. Have to use Ctrl+7 which is new to RBD users.
Comment 1 broy2 CLA 2011-08-15 17:35:11 EDT
Created attachment 201529 [details]
Keyboard shortcuts defined by Eclipse
Comment 2 Zhi Zhu CLA 2011-08-17 02:35:13 EDT
Add the below code segment to plugin.xml of org.eclipse.edt.ide.ui

 <key
            commandId="org.eclipse.edt.ide.ui.source.commentGroup.toggle"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            contextId="org.eclipse.edt.ide.ui.eglEditorScope"
            sequence="Ctrl+/"/>




Now Toggle comments can use key bindings: Ctrl+7 and Ctrl+/, since Ctrl+/ is used more often, it is showed in the menu
Comment 3 broy2 CLA 2011-08-22 14:04:37 EDT
20110819
Comment 4 broy2 CLA 2011-08-22 14:04:56 EDT
Verified