记事本软件n++

In this tutorial I will tell you about how to configure notepad++ to run C, C++, Java, Python, JavaScript, etc. programs.

在本教程中,我将向您介绍如何配置notepad ++以运行C,C ++,Java,Python,JavaScript等程序。

Notepad++ is a popular and free source code editor which is widely used by programmers. Even I use it very frequently. Today while editing a source code on notepad++ I thought that it will be great if there is any way to run the source code on it. Luckily I found a way that I am sharing below. I have mentioned steps only for C, C++ and Java. But the same method can be used to run programs of any other language.

Notepad ++是一种流行且免费的源代码编辑器,已被程序员广泛使用。 即使我经常使用它。 今天,当我在notepad ++上编辑源代码时,我认为如果有任何方法可以在其上运行源代码,那将是很棒的。 幸运的是,我在下面找到了一种分享的方式。 我只提到了C,C ++和Java的步骤。 但是,可以使用相同的方法来运行任何其他语言的程序。

Also Read: How to Run C and C++ Program in Sublime Text

另请参阅: 如何在Sublime Text中运行C和C ++程序

配置记事本++以运行C,C ++和Java程序 (Configure Notepad++ to Run C, C++ and Java Programs)

1. First of all download the notepad++ from below link.

1.首先从下面的链接下载notepad ++。

https://notepad-plus-plus.org/download/

https://notepad-plus-plus.org/download/

2. Now install and open notepad++.

2.现在安装并打开记事本++。

3. We require NppExec plugin that will help us to run programs. You can skip 3rd and 4th steps if the NppExec plugin is already present in notepad++. Go to Plugins > Plugin Manager > Show Plugin Manager.

3.我们需要NppExec插件,它将帮助我们运行程序。 如果NppExec插件已经存在于notepad ++中,则可以跳过第3步和第4步。 转到插件>插件管理器>显示插件管理器

4. Make sure you have internet connection because we are going to download plugin. In the new window you will get a list of all available plugins. Scroll down and select NppExec plugin from the list and install it.

4.确保您可以连接互联网,因为我们将下载插件。 在新窗口中,您将获得所有可用插件的列表。 向下滚动并从列表中选择NppExec插件并安装它。

5. Go to Plugins > NppExec > Execute. Now we have to create a script. In the new window enter following commands and then save it with any name.

5.转到插件> NppExec>执行 。 现在我们必须创建一个脚本。 在新窗口中输入以下命令,然后以任何名称保存。

For C and C++

对于C和C ++

npp_save cd $(CURRENT_DIRECTORY) C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\g++.exe “$(FILE_NAME)” cmd /c “$(CURRENT_DIRECTORY)\a.exe”

npp_save cd $(CURRENT_DIRECTORY) C:\ Program Files(x86)\ Dev-Cpp \ MinGW64 \ bin \ g ++。exe“ $(FILE_NAME)” cmd / c“ $(CURRENT_DIRECTORY)\ a.exe”

For Java

对于Java

npp_save cd $(CURRENT_DIRECTORY) C:\Program Files\Java\jdk1.8.0_45\bin\javac “$(FILE_NAME)” C:\Program Files\Java\jdk1.8.0_45\bin\java “$(NAME_PART)”

npp_save cd $(CURRENT_DIRECTORY) C:\ Program Files \ Java \ jdk1.8.0_45 \ bin \ javac“ $(FILE_NAME)” C:\ Program Files \ Java \ jdk1.8.0_45 \ bin \ java“ $(NAME_PART)”

Replace “C:\Program Files (x86)\Dev-Cpp\MinGW64\bin” and “C:\Program Files\Java\jdk1.8.0_45\bin” with the path where compiler is installed in your computer.

将“ C:\ Program Files(x86)\ Dev-Cpp \ MinGW64 \ bin”和“ C:\ Program Files \ Java \ jdk1.8.0_45 \ bin”替换为在计算机中安装编译器的路径。

6. Then go to Plugins > NppExec > Advance Options. In the bottom left corner you will get a list of Associated script. Select the script that you have just created from the drop down list.

6.然后转到插件> NppExec>高级选项 。 在左下角,您将获得一个关联脚本列表。 从下拉列表中选择刚创建的脚本。

7. Click on Add/Modify button. Now you can see the script in the Menu items box at the top.

7.单击添加/修改按钮。 现在,您可以在顶部的菜单项框中看到脚本。

8. Click OK button, you have to restart the notepad++.

8.单击确定按钮,您必须重新启动记事本++。

9. After that go to Settings > Shortcut Mapper. Click on Plugin commands tab, there you will get the list of all the commands. Scroll down until you see the command with the name with which you have saved the script.

9.之后,转到设置>快捷方式映射器 。 单击“ 插件命令”选项卡,您将获得所有命令的列表。 向下滚动,直到看到带有保存脚本名称的命令。

10. Click on Modify button to choose a shortcut according to you. Make sure the shortcut is unique. Now close the window.

10.单击修改按钮,根据您的需要选择快捷方式。 确保快捷方式是唯一的。 现在关闭窗口。

11. Just write your program and run it using the shortcut key you created in previous step. You can see the output in the Console window as shown below.

11.只需编写您的程序并使用您在上一步中创建的快捷键运行它。 您可以在“控制台”窗口中看到输出,如下所示。

So this was the simple method to configure notepad++ to execute C, C++ and Java programs. If you are getting any problem then comment below, I will try to solve your problem.

因此,这是配置notepad ++以执行C,C ++和Java程序的简单方法。 如果您遇到任何问题,请在下面评论,我将尽力解决您的问题。

翻译自: https://www.thecrazyprogrammer.com/2015/08/configure-notepad-to-run-c-cpp-and-java-programs.html

记事本软件n++

记事本软件n++_配置记事本++以运行C,C ++和Java程序相关推荐

  1. 编写运行最简单的java程序——使用记事本编写java程序

    编写运行最简单的java程序--使用记事本编写java程序 第一个java程序--使用记事本编辑 经过上篇文章的java环境搭建成功的小伙伴们可以在自己的计算机上编写属于自己的java程序了yo~ 还 ...

  2. 软件分享--安卓纯文本记事本软件,支持多记事本与密码

    文章目录 软件名字:LS记事本 支持多记事本 安全性: 备份和恢复: 搜索功能: 显示功能: 字体调节: 轻量绿色 下载地址 软件名字:LS记事本 支持多记事本 安全性: 1.每个记事本支持设置访问密 ...

  3. cmd写java程序_用cmd写一个最简单的Java程序

    一,准备: 1.确保电脑中装有eclipse软件并且确保配置好环境变量 (1)环境变量配置方法: 特别提示:jdk和eclipse保存的路径不能有中文字符 1.打开我的电脑--属性--高级--环境变量 ...

  4. Eclipse在运行同一包下Java程序出现Error提示框,解决方案

    平时运行java程序使正常,在一个包下写了几个java程序,当在Eclipse下运行程序时出现一个大大的Error提示框? (分析了下原因可能是classpath没配置的原因,配置完classpath ...

  5. java ui调试_如何使用 IBM i System Debugger 调试 Java 程序

    当在 IBM i 上使用 Java 时,您可以使用 Qshell Interpreter 或者 CL 命令提供的 Java tools,在 Qshell 环境和 IBM i 环境上进行与 Java 开 ...

  6. java 内存 开发 经验_有一到五年开发经验的JAVA程序员需要掌握的知识与技能!...

    JAVA是一种平台,也是一种程序设计语言,如何学好程序设计不仅仅适用于JAVA,对C++等其他程序设计语言也一样管用.有编程高手认为,JAVA也好C也好没什么分别,拿来就用.为什么他们能达到如此境界? ...

  7. java pc端软件抓包,如何通过抓包工具fiddler获取java程序的http请求

    抓包工具fidder是一个很轻巧的可以获取浏览器,程序的http,https请求的软件. 百科地址:http://baike.baidu.com/view/868685.htm 官网地址:http:/ ...

  8. PSI成长之路_配置并成功运行

    PSI是一款基于SaaS模式(Software as a Service软件即服务)的企业管理软件.PSI以商贸企业的核心业务:采购.销售.库存(进销存)为切入点,最终目标是行业化的ERP解决方案. ...

  9. java记事本的撤回_对于记事本,怎样恢复刚刚撤销的?

    2007-09-13 请问己经经撤销的问题如何恢复? 如何恢复己经撤销的问题,可使用"系统快速修复工具"介绍 "系统快速修复工具"中包含了一组用于解决常见系统问 ...

最新文章

  1. 【CF】474E Pillars
  2. Node.js建立服务、路径处理与响应
  3. cocos2d-x游戏引擎核心(3.x)----启动渲染流程
  4. ZOJ 3827 Information Entropy(数学题 牡丹江现场赛)
  5. Quartz 定时器任务调度
  6. Quartz2D简单绘制之矩形椭圆
  7. PROFIBUS-DP现场总线的结构及应用
  8. 十、JAVA抽象类的定义使用
  9. psftp 上传和下载
  10. zbbz插件使用教程_zbbz加载成功用不了_坐标标注插件zbbz【CAD教学】
  11. 深圳哪个驾校比较好?
  12. C/C++源代码如何变成可执行程序的?
  13. 阿克曼转向几何的设计原理及解决的问题
  14. Pikachu靶场:XSS盲打
  15. python打印A-Z
  16. NVIDIA Jetson Xavier NX 刷机方法(sdk manager)
  17. SRP-PHAT综述
  18. RISC-V生态架构浅析(认识RISC-V)
  19. 判断url链接是否有效的几种方法
  20. 【MFAC】基于全格式动态线性化的无模型自适应控制

热门文章

  1. python的matplotlib库
  2. 微信小程序的一些新手示例(¥62)
  3. SIGIR'22 | 阿里 ESCM^2: 升级版全空间多任务转化率预估
  4. iOS 开发者必知的 75 个工具(译文)
  5. EasyUI给databox,timebox赋予当前时间
  6. Gym:102500E:Expeditious Cubing【精度精度】
  7. wsl arch linux图形,WSL2(Arch Linux)使用systemd
  8. 成君忆不幸被彭剑锋言中
  9. 趣味计算:加油站加油
  10. windows2012R2安装python3.x版本报错0x80240017