如何从记事本编译和运行C ++文件使用NppExec插件? [英] How to compile and run C files from within Notepad++ using NppExec plugin?

查看:250
本文介绍了如何从记事本编译和运行C ++文件使用NppExec插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何配置NppExec插件记事本++?

How can I configure the NppExec plugin for Notepad++?

我想NppExec编译我的C文件,运行它们,并显示它们的输出,全部在记事本+ +。

I would like NppExec to compile my C files, run them, and show their output, all within Notepad++.

推荐答案

下面是perl的一个过程,只要适应它C.希望它能帮助。

Here's a procedure for perl, just adapt it for C. Hope it helps.


  • 开启记事本+ +

  • 键入F6打开的窗口执行

  • 写下面的命令:

    • npp_save < - 保存当前文档

    • CD $(CURRENT_DIRECTORY)< - 移动到当前目录

    • perl.exe所在-c -w$(FILE_NAME)< - 执行命令perl.exe所在-c -w,例如:perl.exe所在 - ç-w test.pl(-C =编译-w =警告)

    • Open Notepad++
    • Type F6 to open the execute window
    • Write the following commands:
      • npp_save <-- Saves the current document
      • CD $(CURRENT_DIRECTORY) <-- Moves to the current directory
      • perl.exe -c -w "$(FILE_NAME)" <-- executes the command perl.exe -c -w , example: perl.exe -c -w test.pl (-c = compile -w = warnings)

      这篇关于如何从记事本编译和运行C ++文件使用NppExec插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆