QmlJSEditor: Add option to automatically format QML/JS file on save

Change-Id: Ide1810efdef98595705daa32c83fecc2ad367a49
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Michael Dönnebrink
2016-06-18 14:15:02 +02:00
parent 410211e090
commit ed6abae46d
10 changed files with 349 additions and 182 deletions

View File

@@ -38,6 +38,7 @@ namespace Utils { class JsonSchemaManager; }
namespace Core {
class Command;
class ActionContainer;
class IDocument;
class IEditor;
}
@@ -82,6 +83,7 @@ private:
void currentEditorChanged(Core::IEditor *editor);
void runSemanticScan();
void checkCurrentEditorSemanticInfoUpToDate();
void autoFormatOnSave(Core::IDocument *document);
Core::Command *addToolAction(QAction *a, Core::Context &context, Core::Id id,
Core::ActionContainer *c1, const QString &keySequence);