C# EditPlus环境设置

时间:2023-03-08 22:07:09

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,一般在安装目录中。将其中的内容替换为如下即可:

 [Options]
Placement=2C00000002000000030000000083FFFF0083FFFFFFFFFFFFFFFFFFFFEA000000EE000000D6050000CF030000FF
Window List=00000000000000000000000000000000FF
Marker List=00000000000000000000000000000000FF
Function List=00000000000000000000000000000000FF
Open Remote=5C020000550100006404000067030000FF
Expand=00000000000000000000000000000000FF
Project Pos=00000000000000000000000000000000FF
Workspace Path=F:\phpcms\phpcms\user\inc
Cliptext Window=
Cliptext Window =
Output=
Output =
Folding=
FindX=
FindY=
Find=align
Tab Index=
Cliptext=
Custom colors=6D6D7200FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0031282700FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF
Matching Brace=
Indent guide=
[Files]
Encoding=
Backup=
Backup Remote=
[Fonts]
Edit Window=F0FFFFFF00000000000000000000000090010000000000000302013143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Printer=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Output Window=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Cliptext Window=F4FFFFFF0000000000000000000000009001000000000001000000004D006900630072006F0073006F006600740020005900610048006500690020005500490000000000000000000000000000000000000000000000000000000000FF
Document Selector=F4FFFFFF0000000000000000000000009001000000000001000000004D006900630072006F0073006F006600740020005900610048006500690020005500490000000000000000000000000000000000000000000000000000000000FF
Hex Viewer=F4FFFFFF00000000000000000000000090010000000000010000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom =F4FFFFFF00000000000000000000000090010000000000000000002241007200690061006C000000720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom =F5FFFFFF000000000000000000000000900100000000000000000022560065007200640061006E00610000004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom =F4FFFFFF000000000000000000000000900100000000000000000012540069006D006500730020004E0065007700200052006F006D0061006E0000000000000000000000000000000000000000000000000000000000000000000000FF
Custom =F5FFFFFF0000000000000000000000009001000000000000000000224D0053002000530061006E0073002000530065007200690066000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom =F3FFFFFF00000000000000000000000090010000000000FF000000315400650072006D0069006E0061006C00000065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
[Tool Option]
Top Selector=
[Colors\Text]
Background=
Default=
Foreground=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Embedded script]
Foreground=
Default=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Quotation]
Foreground=
Default=
[Colors\Quotation ]
Foreground=
Default=
[Colors\Line comment]
Foreground=
Default=
[Colors\Line number]
Foreground=
Background=
Default=
[Colors\Folding mark -]
Background=
Default=
[Colors\Matching words]
Default=
Background=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Folding mark +]
Background=
Default=
[Colors\Text selection]
Background=
Default=
[Colors\Number]
Foreground=
Default=
[Colors\Block comment]
Foreground=
Default=
[Colors\Keyword ]
Foreground=
Default=
[Colors\Ruler]
Foreground=
Default=
Background=
[Colors\Cursor indicator]
Background=
Default=
[Colors\Indent Guide]
Foreground=
Default=

editplus_u.ini

6.C#暂停命令行窗口

Console.ReadLine();