Set Python run in notepad++

Source: Internet
Author: User

1. notepad++, run menu, run button

2. Enter the following command in the popup window:

EXIT

Then click "Save", feel free to take a name, such as "Runpython", for convenience, configure the shortcut keys (such as Ctrl + F5), click OK. Then run the Python file simply by pressing the configured shortcut key or by clicking "Runpython" on the Run menu.

3. Order Explanation "1"

EXIT

cmd/k python: Opens the cmd window, runs the command behind/k, and retains the window after execution is complete. This is Python (because the Python directory has been added to the environment variable, so it is not necessary to specify a directory for the Python program, which can be found directly)

$ (Full_current_path): notepad++ macro definition that represents the full path of the current file.

& used to connect more than one command

ECHO: Line break

Pause: Indicates a pause after running (cmd displays " Press any key to continue ..."), waiting for a key to continue

EXIT: Indicates " Press any key to continue ..." to close the command line window.

Set Python run in notepad++

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.