codecompletionoptions.cs

来自「SharpDevelop2.0.0 c#开发免费工具」· CS 代码 · 共 99 行

CS
99
字号
// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
//     <version>$Revision: 1018 $</version>
// </file>

using System;
using ICSharpCode.Core;

namespace ICSharpCode.SharpDevelop.Dom
{
	/// <summary>
	/// Class containing static properties for the code completion options.
	/// </summary>
	public static class CodeCompletionOptions
	{
		static Properties properties = PropertyService.Get("CodeCompletionOptions", new Properties());
		
		public static Properties Properties {
			get {
				return properties;
			}
		}
		
		public static bool EnableCodeCompletion {
			get {
				return properties.Get("EnableCC", true);
			}
			set {
				properties.Set("EnableCC", value);
			}
		}
		
		public static bool DataUsageCacheEnabled {
			get {
				return properties.Get("DataUsageCacheEnabled", true);
			}
			set {
				properties.Set("DataUsageCacheEnabled", value);
			}
		}
		
		public static int DataUsageCacheItemCount {
			get {
				return properties.Get("DataUsageCacheItemCount", 500);
			}
			set {
				properties.Set("DataUsageCacheItemCount", value);
			}
		}
		
		public static bool TooltipsEnabled {
			get {
				return properties.Get("TooltipsEnabled", true);
			}
			set {
				properties.Set("TooltipsEnabled", value);
			}
		}
		
		public static bool TooltipsOnlyWhenDebugging {
			get {
				return properties.Get("TooltipsOnlyWhenDebugging", false);
			}
			set {
				properties.Set("TooltipsOnlyWhenDebugging", value);
			}
		}
		
		public static bool KeywordCompletionEnabled {
			get {
				return properties.Get("KeywordCompletionEnabled", true);
			}
			set {
				properties.Set("KeywordCompletionEnabled", value);
			}
		}
		
		public static bool InsightEnabled {
			get {
				return properties.Get("InsightEnabled", true);
			}
			set {
				properties.Set("InsightEnabled", value);
			}
		}
		
		public static bool InsightRefreshOnComma {
			get {
				return properties.Get("InsightRefreshOnComma", true);
			}
			set {
				properties.Set("InsightRefreshOnComma", value);
			}
		}
	}
}

⌨️ 快捷键说明

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