📄 xmleditor.addin
字号:
<AddIn name = "Xml Editor"
author = "Matt Ward"
copyright = "GPL"
url = "http://www.icsharpcode.net"
description = "Xml Editor"
version = "1.0.0">
<Runtime>
<Import assembly="XmlEditor.dll"/>
<Import assembly="../../../../bin/SharpDevelop.DefaultTexteditor.dll"/>
</Runtime>
<!-- Xml Editor View -->
<Extension path = "/SharpDevelop/Workbench/DisplayBindings">
<DisplayBinding id = "XmlEditor"
insertbefore = "Text"
supportedformats = "Text Files,Source Files"
class = "ICSharpCode.XmlEditor.XmlDisplayBinding"/>
</Extension>
<!-- Xml parser used to initiate the folding update -->
<Extension path = "/Workspace/Parser">
<Class id = "XmlFoldingParser"
class = "ICSharpCode.XmlEditor.Parser"/>
</Extension>
<!-- Right click menu -->
<Extension path = "/SharpDevelop/ViewContent/XmlEditor/ContextMenu">
<MenuItem id = "Cut"
label = "${res:XML.TextAreaContextMenu.Cut}"
icon = "Icons.16x16.CutIcon"
shortcut = "Control|X"
class = "ICSharpCode.SharpDevelop.Commands.Cut"/>
<MenuItem id = "Copy"
label = "${res:XML.TextAreaContextMenu.Copy}"
icon = "Icons.16x16.CopyIcon"
shortcut = "Control|C"
class = "ICSharpCode.SharpDevelop.Commands.Copy"/>
<MenuItem id = "Paste"
label = "${res:XML.TextAreaContextMenu.Paste}"
icon = "Icons.16x16.PasteIcon"
shortcut = "Control|V"
class = "ICSharpCode.SharpDevelop.Commands.Paste"/>
<MenuItem id = "Delete"
label = "${res:XML.MainMenu.EditMenu.Delete}"
icon = "Icons.16x16.DeleteIcon"
class = "ICSharpCode.SharpDevelop.Commands.Delete"/>
<MenuItem id = "Separator1" label = "-" />
<MenuItem id = "Save"
label = "${res:XML.MainMenu.FileMenu.Save}"
icon = "Icons.16x16.SaveIcon"
shortcut = "Control|S"
class = "ICSharpCode.SharpDevelop.Commands.SaveFile"/>
<MenuItem id = "SaveAs"
label = "${res:XML.MainMenu.FileMenu.SaveAs}"
class = "ICSharpCode.SharpDevelop.Commands.SaveFileAs"/>
<MenuItem id = "File"
label = "${res:XML.MainMenu.FileMenu.Close}"
class = "ICSharpCode.SharpDevelop.Commands.CloseFile"/>
<MenuItem id = "Separator2" label = "-" />
<MenuItem id = "CreateSchema"
label = "${res:ICSharpCode.XmlEditor.CreateSchemaMenuLabel}"
class = "ICSharpCode.XmlEditor.CreateSchemaCommand" />
<MenuItem id = "ValidateXml"
label = "${res:ICSharpCode.XmlEditor.ValidateXmlMenuLabel}"
class = "ICSharpCode.XmlEditor.ValidateXmlCommand"
shortcut = "Control|Shift|V" />
<MenuItem id = "Indent"
label = "${res:XML.TextAreaContextMenu.Indent}"
shortcut = "Control|I"
class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.IndentSelection" />
<MenuItem id = "FileMode" label = "${res:XML.TextAreaContextMenu.FileMode}">
<MenuItem id = "HighlightBuilder" label = "boguslabel" class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.HighlightingTypeBuilder" />
</MenuItem>
<MenuItem id = "Separator3" label = "-" />
<MenuItem id = "Options"
label = "${res:XML.TextAreaContextMenu.BufferOptions}"
icon = "Icons.16x16.PropertiesIcon"
class ="ICSharpCode.SharpDevelop.DefaultEditor.Commands.ShowBufferOptions"/>
</Extension>
<!-- Tools menu option -->
<Extension path = "/SharpDevelop/Workbench/MainMenu/Tools">
<Conditional activewindow = "ICSharpCode.XmlEditor.XmlView">
<MenuItem id = "ValidateXml"
insertbefore = "Separator4"
label = "${res:ICSharpCode.XmlEditor.ValidateXmlMenuLabel}"
description = "Validates the xml against the known schemas."
class = "ICSharpCode.XmlEditor.ValidateXmlCommand"
shortcut = "Control|Shift|V"
/>
</Conditional>
</Extension>
<!-- Options panel -->
<Extension path = "/SharpDevelop/Dialogs/OptionsDialog/TextEditorOptions">
<DialogPanel id = "XmlSchemasPanel"
insertafter = "VBSpecificOptions"
label = "${res:ICSharpCode.XmlEditor.XmlSchemasPanel.Title}"
class = "ICSharpCode.XmlEditor.XmlSchemasPanel" />
<DialogPanel id = "XmlEditorOptionsPanel"
insertafter = "VBSpecificOptions"
insertbefore = "XmlSchemasPanel"
label = "${res:ICSharpCode.XmlEditor.XmlEditorOptionsPanel.Title}"
class = "ICSharpCode.XmlEditor.XmlEditorOptionsPanel" />
</Extension>
<Extension path = "/AddIns/XmlEditor/EditActions">
<EditAction id = "XmlCompletionPopup" class = "ICSharpCode.XmlEditor.CodeCompletionPopupCommand" keys = "Control|Space"/>
</Extension>
</AddIn>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -