diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-11-07 14:54:25 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-11-07 14:54:25 +0400 |
commit | 75393690b99d655b1c6b3cddf8e2483de3ee363a (patch) | |
tree | ecd4f758d48aae5edf92074fa13919aab7a83e82 /main/src/addins/MonoDevelop.SourceEditor2 | |
parent | bdb1eda708e8dcb29f4981fe876896771b669d91 (diff) |
Enabled semantic highlighting & on the fly formatting as default.
Diffstat (limited to 'main/src/addins/MonoDevelop.SourceEditor2')
3 files changed, 5 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs index ea69d96fde..c035d0cadf 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs @@ -662,7 +662,7 @@ namespace MonoDevelop.SourceEditor void HandleTextPaste (int insertionOffset, string text) { - if (PropertyService.Get ("OnTheFlyFormatting", false)) { + if (PropertyService.Get ("OnTheFlyFormatting", true)) { var prettyPrinter = CodeFormatterService.GetFormatter (Document.MimeType); if (prettyPrinter != null && Project != null && text != null) { try { @@ -685,7 +685,7 @@ namespace MonoDevelop.SourceEditor var result = template.InsertTemplateContents (document); var tle = new TextLinkEditMode (this, result.InsertPosition, result.TextLinks); - if (PropertyService.Get ("OnTheFlyFormatting", false)) { + if (PropertyService.Get ("OnTheFlyFormatting", true)) { var prettyPrinter = CodeFormatterService.GetFormatter (Document.MimeType); if (prettyPrinter != null) { int endOffset = result.InsertPosition + result.Code.Length; diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorOptions.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorOptions.cs index 8981ca41f1..1ee894a3b1 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorOptions.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorOptions.cs @@ -212,7 +212,7 @@ namespace MonoDevelop.SourceEditor void LoadAllPrefs () { this.tabIsReindent = PropertyService.Get ("TabIsReindent", false); - this.enableSemanticHighlighting = PropertyService.Get ("EnableSemanticHighlighting", false); + this.enableSemanticHighlighting = PropertyService.Get ("EnableSemanticHighlighting", true); // this.autoInsertTemplates = PropertyService.Get ("AutoInsertTemplates", false); this.autoInsertMatchingBracket = PropertyService.Get ("AutoInsertMatchingBracket", false); this.smartSemicolonPlacement = PropertyService.Get ("SmartSemicolonPlacement", false); @@ -235,7 +235,7 @@ namespace MonoDevelop.SourceEditor this.defaultRegionsFolding = PropertyService.Get ("DefaultRegionsFolding", false); this.defaultCommentFolding = PropertyService.Get ("DefaultCommentFolding", true); this.useViModes = PropertyService.Get ("UseViModes", false); - this.onTheFlyFormatting = PropertyService.Get ("OnTheFlyFormatting", false); + this.onTheFlyFormatting = PropertyService.Get ("OnTheFlyFormatting", true); this.enableAutoCodeCompletion = PropertyService.Get ("EnableAutoCodeCompletion", true); this.completeWithSpaceOrPunctuation = PropertyService.Get ("CompleteWithSpaceOrPunctuation", true); var defaultControlMode = (ControlLeftRightMode)Enum.Parse (typeof(ControlLeftRightMode), DesktopService.DefaultControlLeftRightBehavior); diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs index bb75d79fb4..0f9e1446c9 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs @@ -472,7 +472,7 @@ namespace MonoDevelop.SourceEditor if (this.isDisposed || document == null || this.view == null) return; - if (MonoDevelop.Core.PropertyService.Get ("EnableSemanticHighlighting", false) && TextEditor != null) { + if (MonoDevelop.Core.PropertyService.Get ("EnableSemanticHighlighting", true) && TextEditor != null) { var margin = TextEditor.TextViewMargin; if (margin != null) Gtk.Application.Invoke (delegate { margin.PurgeLayoutCache (); }); |