Bug 564792 - [generic editor] add flag to globally disable smart insert and other automatic text changes
Summary: [generic editor] add flag to globally disable smart insert and other automati...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.17   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-30 09:08 EDT by Sascha Nitsch CLA
Modified: 2020-06-30 09:59 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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