notepad++ automatically selects the corresponding compiler according to the language type to compile the code

Source: Internet
Author: User

Notepad++ 's Nppexec plugin can invoke many compilers to compile code.

Like compiling Java:

"$ (Full_current_path)"-cp "$ (current_directory)" "$ (Name_part)"

Save As: Run Java

Compiling python:

Save As: Run Python

Then there is the automatic switch program:

if Goto Java if Goto  "Run Java"goto"Run Python"goto  endlabel endecho execution Complete

Save As: Run program

Then add the script to the menu item:

In notepad++, click: Plug-in--->nppexec--->advanced Options,

Add these scripts to the menu. Then restart notepad++.

Finally, configure the shortcut keys:

In notepad++, click: Macro---> Manage shortcuts--->plugin commands, configure shortcut keys.

I set the shortcut key for Run program to Alt+enter.

When I press alt+enter, whether I open the Python or Java,

I can automatically identify the build run without having to set different keystrokes or commands.

The same is true if you want to add a compilation to another language.

notepad++ automatically selects the corresponding compiler according to the language type to compile the code

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.