配置系统环境变量,在Path中添加:

C:\Windows\Microsoft.NET\Framework\v4.0.30319

注释:就是csc.exe所在的目录   

在cmd命令中输入 csc 测试是否配置成功

NotePad++配置C#编译环境

1:下载NppExec 插件

菜单--》插件--》Plugin Manager --》show Plugin Manager

安装过后,需要重启NotePad++

NotePad++配置C#编译环境

2:配置 NppExec

在Execute中输入:

NPP_SAVE
csc $(FILE_NAME)
$(NAME_PART)

并且点击Save,保存为C#

NotePad++配置C#编译环境

NotePad++配置C#编译环境

NotePad++配置C#编译环境

 

3:测试

新建一个test.cs文件

using System;
namespace Test
{
 class Program
 {
	static void Main(string[] args)
	{
		Console.WriteLine("Hello,C# World in Notepad++~");
	}
 }
}

点击 Execute执行编译NotePad++配置C#编译环境

 

4:快捷键

在   设置--》快捷键管理

NotePad++配置C#编译环境

 

 

相关文章:

  • 2021-12-06
  • 2022-01-16
  • 2022-01-13
  • 2021-08-31
  • 2022-12-23
  • 2021-07-12
  • 2021-05-29
  • 2022-01-01
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2021-04-12
  • 2021-12-26
  • 2021-10-15
相关资源
相似解决方案