forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user