Skip to content

How to auto complete code in Notepad++

Last Updated on 2021-05-13 by Clay


Introduction

Notepad++ is a free open source editor, published by GPL license and it have multi-language version. In addition to writing, it can also be used to write programs.

It can highlight your code, use plugin. Today I want to record how to complete your code automatically.

First, you can download Notepad++ from here: https://notepad-plus-plus.org/downloads/


Setting auto complete code

Config => set program language format.

Select the programming language you want to complete, adjust the color you want (for example, let the eyes adapt to a little color), and then save and close it.

Settings => preferences.

Select “Word auto completion function“, and check “Automatically display function parameter prompt“, then save and close.

I use Python to demonstrate in below.

it looks like this.


Execute Python

If you have Python interpreter in your computer, you can install plugin NppExec in Notepad++; If not, you need install Python first.

Install NppExec. Then press the F5 shortcut key to directly call “Execute”.

Enter:

python "$(FULL_CURRENT_PATH)"

You can execute the current Python file. Of course, it’s best to store it and set up shortcut keys for later use.

Output:


References


Read More

Tags:

Leave a Reply