diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-02-08 08:32:18 +0300 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-02-08 08:41:48 +0300 |
commit | bdc3ac6281d9a4bcf4e0bb5f412269ed5870ab30 (patch) | |
tree | 6d603b5ddb7ab1e3d8ba884fe7077bf3a4b74499 /main/src | |
parent | 42adc64667d029ac74ee7393aadfab4f9fa7dce1 (diff) |
[Ide] Add command for sorting lines
Diffstat (limited to 'main/src')
3 files changed, 7 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml b/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml index 86fe28721c..a32860f20d 100644 --- a/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml +++ b/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml @@ -126,6 +126,9 @@ shortcut = "Control|Shift|J" _description = "Join the current line with the next line" _label = "_Join Lines" /> + <Command id = "MonoDevelop.Ide.Commands.EditCommands.SortSelectedLines" + _description = "Sort the selected lines" + _label = "_Sort Lines" /> <Command id = "MonoDevelop.Ide.Commands.EditCommands.WordCount" _label = "_Word Count..." description = "Count words in a text file"/> diff --git a/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml b/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml index 260d510f92..25cda3ed16 100644 --- a/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml +++ b/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml @@ -80,8 +80,9 @@ <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.IndentSelection" /> <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.UnIndentSelection" /> <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.RemoveTrailingWhiteSpaces" /> - <SeparatorItem id = "Separator1" /> + <SeparatorItem id = "Separator2" /> <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.JoinWithNextLine" /> + <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.SortSelectedLines" /> </ItemSet> <ItemSet id = "Folding" _label = "F_olding"> diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs index 8a1811a1e8..c026f85bf6 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs @@ -72,7 +72,8 @@ namespace MonoDevelop.Ide.Commands /// a file in the solution pad. /// </summary> DeleteKey, - InsertGuid + InsertGuid, + SortSelectedLines } internal class MonodevelopPreferencesHandler: CommandHandler |