Bug 564792

Summary: [generic editor] add flag to globally disable smart insert and other automatic text changes
Product: [Eclipse Project] Platform Reporter: Sascha Nitsch <sn>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: mat.booth, mistria, nobody
Version: 4.17   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sascha Nitsch CLA 2020-06-30 09:08:27 EDT
Issue:
Currently I can't globally disable the smart insert (more general: all automatic text changes) when typing.

When editing existing code adding a ( automatically inserts a matching ), usually at the wrong place. This is almost impossible to get right in an algorithmn, so I want to disable it. It takes more time to correct a wrongly placed character than typing it all by hand.
This also applies to {, " and similar.
I don't want the editor to insert stuff automatically unless I press a shortcut.
This also includes content assist. Just add it when pressing the shortcut.

There are some setting for language specific editors like in Java, C/C++ but no global flag for all languages or editor types.

Proposed solution:
A global flag in preferences to disable it everywhere, every editor type, every programming language.
It should be possible to be overwritten by programming language or editor type for people who want this feature on, off or inherited from default. Similar to workspace overwrites.
Comment 1 Mat Booth CLA 2020-06-30 09:59:27 EDT
If you are interested in looking at the source, the generic editor is implemented over here:

https://git.eclipse.org/c/platform/eclipse.platform.text.git/tree/org.eclipse.ui.genericeditor

Maybe see how JDT is implementing these preferences by looking in:

https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/tree/org.eclipse.jdt.ui
and
https://git.eclipse.org/c/platform/eclipse.platform.text.git/tree/org.eclipse.ui.workbench.texteditor