notepad ++ configuration java, python, c / c ++ runtime environment

Usually you need to write small programs to practice, but do not want to install a variety of software. Recent studies notepad ++ compiler environment configured in several languages, are summarized as follows.

  1. Install notepad ++ plugin NppExec
    open notepad ++ -> Plugins -> Plugin Manager -> find NppExec click install.
    After a successful installation: plug-ins -> NppExec -> Show Console (to display the console)
  2. Environment Configuration python
    widget -> NppExec -> execute -> select <temporary script> -> text box, enter the following command:
    NPP_SAVE
    python "$ (FULL_CURRENT_PATH)"
    where NPP_SAVE denotes a save key. (As)


    2216217-a019602c31466623.png

    When finished, click save, I named Python, can be according to their preferences.
    Next: widget -> NppExec -> Advanced Options (below) -> select a previously saved the Associated script Python - Item name input the Python> (preferably in the same script name) -> bottom left, click Add / Modify -> (effective after reboot)> ok - the box will appear python


    2216217-c4a72abd8db0bb14.png
  3. Test
    new python file, write code, click Macros -> choose Python (as shown below).


    2216217-54cd1e46a4645282.png

    Compiler environment has been created.

  4. Java environment configuration
    steps with Python same, but different command text.


    2216217-07a716e6fe4983b3.png

    Which echo newline.
    Test: write java program -> Macros -> Java


    2216217-94dd758f491042ad.png

    testing successfully.
    Text following command
NPP_SAVE
javac "$(FULL_CURRENT_PATH)"
echo
cd "$(CURRENT_DIRECTORY)"
java $(NAME_PART)
  1. Configuration C ambient
    author named GCC
NPP_SAVE

gcc "$(FULL_CURRENT_PATH)" -o "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"

echo

"$(CURRENT_DIRECTORY)\$(NAME_part).exe"
  1. Configuration C ++ environment
    writer named G ++
NPP_SAVE

g++ "$(FULL_CURRENT_PATH)" -o "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"

echo

"$(CURRENT_DIRECTORY)\$(NAME_part).exe"

This configuration is complete.

Report: on shortcut keys to set
the macro -> Manage Shortcuts -> Plug command -> find the need to set the shortcut command plugin -> double click Settings


2216217-e35311be5d4855fb.png

Reproduced in: https: //www.jianshu.com/p/4e7110503aa0

Guess you like

Origin blog.csdn.net/weixin_34279061/article/details/91259922