notepad++ c# ide 配置

tag : notepad++ c# IDE 编译 环境 搭配

配置C#
运行notpad++,点击“运行-》运行”菜单,出现一个弹出框,输入命令行,而后保存即可。

1. 编译

cmd /k C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /out:"$(CURRENT_DIRECTORY)\$(NAME_PART).exe" "$(FULL_CURRENT_PATH)" & PAUSE & EXIT

cl.bat
@echo off
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\csc.exe /target:exe /out:%1\%2.exe %3
%1\%2.exe
rem %1:$(FileDir)
rem %2:$(FileNameNoExt)
rem %3:$(FileName)
rem argument:$(FileDir) $(FileNameNoExt) $(FileName)


1.1 编译+运行
cs.compiler.bat $(CURRENT_DIRECTORY) $(NAME_PART) $(FULL_CURRENT_PATH)

cs.compiler.bat

@echo off
C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe /target:exe /out:%1\%2.exe %3
%1\%2.exe &PAUSE
rem %1:$(FileDir)
rem %2:$(FileNameNoExt)
rem %3:$(FileName)


/r:System.dll;System.Core.dll;System.Data.dll;System.Drawing.dll;System.DirectoryServices.dll;System.Management.dll;System.Runtime.Remoting.dll;
System.XML.dll;System.Data.OracleClient.dll;System.Deployment.dll;System.Design.dll;System.Web.dll;System.Web.Services.dll;System.Xml.Linq.dll;
System.Data.DataSetExtensions.dll;System.Configuration.dll;System.Configuration.Install.dll;System.ServiceProcess.dll;
System.Runtime.Serialization.Formatters.Soap.dll;System.Windows.Forms.dll

$(CURRENT_DIRECTORY) $(NAME_PART) $(FULL_CURRENT_PATH)
@echo off
csc /target:exe /out:"$(CURRENT_DIRECTORY)"\"$(NAME_PART)".exe
$(FULL_CURRENT_PATH)
"$(CURRENT_DIRECTORY)"\"$(NAME_PART)".exe &PAUSE

2. 运行
cmd /c "$(CURRENT_DIRECTORY)\$(NAME_PART).exe" &PAUSE

3. AStyle
cmd /k Astyle.exe --style=allman -N "$(FULL_CURRENT_PATH)" &EXIT

4. notepad++ 列编辑,列模式
按下alt+shift,用鼠标进行选择

5. notepad++ 环境变量

FULL_CURRENT_PATH: E:\\my Webmain\\welcome.html
CURRENT_DIRECTORY: E:\\my Webmain
FILE_NAME: welcome.html
NAME_PART: welcome
EXT_PART: html
另两个环境变量
NPP_DIRECTORY: the full path of directory which locates your notepad++.exe
CURRENT_WORD: it gives the word(s) you selected in Notepad++.

调用的形式如:$(NAME_PART) *注意:这里是'('不是'{'



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值