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

Bug 196416

Summary: Quick fix not working
Product: [Tools] CDT Reporter: Axel Mueller <aegges>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Axel Mueller CLA 2007-07-13 02:54:12 EDT
Quick Fix (CTRL-1) seems not to work in CDT. I have created the following template:

#ifndef NDEBUG
  ${line_selection}${cursor}
#endif

According to the help text on quick fix I could select some lines of code and press CTRL-1 to activate quick fix. This would give me a list of available templates. However, nothing happens if I press CTRL-1. Quick fix is not in the context menu of the CDT editor, too. Does it mean that it is not implemented in the CDT?
Comment 1 Anton Leherbauer CLA 2007-07-13 04:11:09 EDT
You are right, CDT does not support quick fix. But for what you would like to do, Ctrl+Space should work, too.
Comment 2 Markus Schorn CLA 2007-07-13 04:59:30 EDT

*** This bug has been marked as a duplicate of bug 101557 ***
Comment 3 Axel Mueller CLA 2007-07-13 09:48:23 EDT
(In reply to comment #1)
Ctrl+Space does not work in my case. I tried to select some code and pressed CTRL-Space twice (to get template completion). But Eclipse did not offer any proposal.