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) *注意:这里是'('不是'{'
@IS2120#CNBLOGS.T2169364049[T1,L65,R1,V259]:备忘
$ € ₤ ₭ ₪ ₩ ₮ ₦ ₱ ฿ ₡ ₫ ﷼ ¥ ﷼ ₫ ₡ ฿ ₱ ₦ ₮ ₩ ₪ ₭ ₤ € $