Support UTF-8 BOM in TextEditor
TextEditor will now recognize an UTF-8 BOM.
A setting to determine what to do on saving has been added as well - the
options are "Always Add", "Keep Already Present" and (mostly for
completeness) "Always Delete".
Note: if encoding is "System", "Always Add" doesn't work, because there
is no API to know what the System encoding is.
Task-number: QTCREATORBUG-1857
Merge-request: 2180
Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Showing
- src/plugins/coreplugin/editormanager/editormanager.cpp 18 additions, 1 deletionsrc/plugins/coreplugin/editormanager/editormanager.cpp
- src/plugins/coreplugin/editormanager/editormanager.h 3 additions, 0 deletionssrc/plugins/coreplugin/editormanager/editormanager.h
- src/plugins/coreplugin/generalsettings.ui 40 additions, 0 deletionssrc/plugins/coreplugin/generalsettings.ui
- src/plugins/coreplugin/ifile.h 6 additions, 0 deletionssrc/plugins/coreplugin/ifile.h
- src/plugins/texteditor/basetextdocument.cpp 11 additions, 0 deletionssrc/plugins/texteditor/basetextdocument.cpp
- src/plugins/texteditor/basetextdocument.h 1 addition, 0 deletionssrc/plugins/texteditor/basetextdocument.h
- src/plugins/texteditor/behaviorsettingspage.cpp 5 additions, 0 deletionssrc/plugins/texteditor/behaviorsettingspage.cpp
- src/plugins/texteditor/behaviorsettingspage.ui 61 additions, 5 deletionssrc/plugins/texteditor/behaviorsettingspage.ui
Loading
Please register or sign in to comment