C# EditPlus环境设置
先要设置环境变量
5.0的 C:\Program Files\MSBuild\12.0\Bin
6.0的 C:\Windows\Microsoft.NET\Framework64\v4.0.30319;
与Sublime的不同是,可以设定模板,但是没有代码提示,Sublime有代码提示,但是不知道怎么设定模板。
1.设定语法加亮文件
Tools|Preferences|Settings & Syntax|Add
描述填c#, 文件扩展名cs
选择语法加亮文件 cs.stx
2.设定模板文件
Tools|Preferences|Templates|Add
描述填c#
选择模板文件 template.cs(没有的话先编辑这个文件)
3.配置编译工具
Tools | Config User Tools | Add
MenuText填:Compile C#(编译C#)
Command选:D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe
Argument填:/unsafe $(FileName)
InitDir填:$(FileDir)
Action选:Capture Output
4.配置运行工具
Tools | Config User Tools | Add
MenuText填:Run C#(运行C#)
Command填:cmd /c
Argument填:$(FileNameNoExt).exe
InitDir填:$(FileDir)
Action选:None
5.配色方案
找到EditPlus的配置文件editplus_u.ini,一般在安装目录中。将其中的内容替换为如下即可:
1 [Options]
2 Placement=2C00000002000000030000000083FFFF0083FFFFFFFFFFFFFFFFFFFFEA000000EE000000D6050000CF030000FF
3 Window List=00000000000000000000000000000000FF
4 Marker List=00000000000000000000000000000000FF
5 Function List=00000000000000000000000000000000FF
6 Open Remote=5C020000550100006404000067030000FF
7 Expand=00000000000000000000000000000000FF
8 Project Pos=00000000000000000000000000000000FF
9 Workspace Path=F:\phpcms\phpcms\user\inc
10 Cliptext Window=224
11 Cliptext Window 2=489
12 Output=90
13 Output 2=170
14 Folding=1
15 FindX=586
16 FindY=429
17 Find=align
18 Tab Index=1
19 Cliptext=2
20 Custom colors=6D6D7200FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0031282700FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF
21 Matching Brace=1
22 Indent guide=1
23 [Files]
24 Encoding=65001
25 Backup=0
26 Backup Remote=0
27 [Fonts]
28 Edit Window=F0FFFFFF00000000000000000000000090010000000000000302013143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
29 Printer=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
30 Output Window=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
31 Cliptext Window=F4FFFFFF0000000000000000000000009001000000000001000000004D006900630072006F0073006F006600740020005900610048006500690020005500490000000000000000000000000000000000000000000000000000000000FF
32 Document Selector=F4FFFFFF0000000000000000000000009001000000000001000000004D006900630072006F0073006F006600740020005900610048006500690020005500490000000000000000000000000000000000000000000000000000000000FF
33 Hex Viewer=F4FFFFFF00000000000000000000000090010000000000010000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
34 Custom 1=F4FFFFFF00000000000000000000000090010000000000000000002241007200690061006C000000720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
35 Custom 2=F5FFFFFF000000000000000000000000900100000000000000000022560065007200640061006E00610000004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
36 Custom 3=F4FFFFFF000000000000000000000000900100000000000000000012540069006D006500730020004E0065007700200052006F006D0061006E0000000000000000000000000000000000000000000000000000000000000000000000FF
37 Custom 4=F5FFFFFF0000000000000000000000009001000000000000000000224D0053002000530061006E0073002000530065007200690066000000000000000000000000000000000000000000000000000000000000000000000000000000FF
38 Custom 5=F3FFFFFF00000000000000000000000090010000000000FF000000315400650072006D0069006E0061006C00000065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
39 [Tool Option]
40 Top Selector=1
41 [Colors\Text]
42 Background=2238503
43 Default=0
44 Foreground=16777215
45 [Colors\Keyword 1]
46 Foreground=8272368
47 Default=0
48 [Colors\Embedded script]
49 Foreground=16777215
50 Default=0
51 [Colors\Keyword 3]
52 Foreground=16777215
53 Default=0
54 [Colors\Keyword 6]
55 Foreground=8716287
56 Default=0
57 [Colors\Keyword 7]
58 Foreground=8716287
59 Default=0
60 [Colors\Keyword 8]
61 Foreground=8716287
62 Default=0
63 [Colors\Keyword 9]
64 Foreground=8454143
65 Default=0
66 [Colors\Keyword 10]
67 Foreground=8716287
68 Default=0
69 [Colors\Quotation]
70 Foreground=8454143
71 Default=0
72 [Colors\Quotation 2]
73 Foreground=5107956
74 Default=0
75 [Colors\Line comment]
76 Foreground=10789024
77 Default=0
78 [Colors\Line number]
79 Foreground=12632256
80 Background=2238503
81 Default=0
82 [Colors\Folding mark -]
83 Background=2238503
84 Default=0
85 [Colors\Matching words]
86 Default=0
87 Background=718314
88 [Colors\Keyword 2]
89 Foreground=16379142
90 Default=0
91 [Colors\Folding mark +]
92 Background=2238503
93 Default=0
94 [Colors\Text selection]
95 Background=7039851
96 Default=0
97 [Colors\Number]
98 Foreground=16524240
99 Default=0
100 [Colors\Block comment]
101 Foreground=8421504
102 Default=0
103 [Colors\Keyword 5]
104 Foreground=15574913
105 Default=0
106 [Colors\Ruler]
107 Foreground=12632256
108 Default=0
109 Background=2566187
110 [Colors\Cursor indicator]
111 Background=16777215
112 Default=0
113 [Colors\Indent Guide]
114 Foreground=7499117
115 Default=0
6.C#暂停命令行窗口
Console.ReadLine();