⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alternateeditordisplaybinding.cs

📁 SharpDevelop2.0.0 c#开发免费工具
💻 CS
字号:

using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui;
using System;

namespace AlternateEditor
{
	public class AlternateEditorDisplayBinding : IDisplayBinding
	{
		public bool CanCreateContentForFile(string fileName)
		{
			return true;
		}
		
		public bool CanCreateContentForLanguage(string language)
		{
			return true;
		}
		
		public IViewContent CreateContentForFile(string fileName)
		{
			Editor editor = new Editor();
			editor.Load(fileName);
			return editor;
		}
		
		public IViewContent CreateContentForLanguage(string language, string content)
		{
			return new Editor();
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -