Community
Participate
Working Groups
When writing C code I've realised that I can move elements of the code on the outline view, I can also rename them. But if I try to remove them (hitting the DEL key, BACKSPACE key or right clicking) it is not possible. The expected behaviour would be to right click and have a delete option and be able to remove code elements using BACKSPACE or DEL keys. I went on the IRC channel and asked about if this could be enabled on a menu or something but apparently it's available for other languages i.e JAVA (I did not test this myself).
Presumably deleting an element from the outline view should have the effect of deleting the corresponding code from the source?
Yes correct, that is the expected behaviour but not what is happening. Elements from the outline view should be able to be deleted.
It's a feature that no one has implemented yet. Patches are welcome!
New Gerrit change created: https://git.eclipse.org/r/62062
New Gerrit change created: https://git.eclipse.org/r/62776
New Gerrit change created: https://git.eclipse.org/r/62777
Luis, what is the status of this bug? As far as I can tell, Sergey reviewed the most recent version of the patch on 2015-12-26, with just some minor comments. Have you had a chance to address them?
Gerrit change https://git.eclipse.org/r/62777 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=f034a69fb7498c184a7572532ea0249825fdcdfa
Nice contribution! Can you add a description to the New&Noteworthy? https://wiki.eclipse.org/CDT/User/NewIn92
New Gerrit change created: https://git.eclipse.org/r/84263
The Delete operation as implemented doesn't properly call TextEditorAction.validateEditorInputState() and as a result doesn't work in version control environments that keep unchanged files read-only. Another problem is that Ctrl+Z doesn't trigger Undo when the Outline view is active. When the Delete element action is reintroduced it should be made to behave the same way as in JDT, e.g, display a prompt before deletion and be bound to the Delete key. https://git.eclipse.org/r/84263 reverts the change.
Gerrit change https://git.eclipse.org/r/84263 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=6335a5c2ba1b40857f15016f6ab0ffa2c4c573a7