Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I enable auto complete support in Notepad++?

I am trying to add simple syntax highlighting and auto completion for a simple scripting language...

I added syntax highlighting using this article

Now I want to know how to enable auto completion with Notepad ++ for my custom language. Does anyone know how to do that?

like image 447
Chathuranga Chandrasekara Avatar asked May 21 '09 16:05

Chathuranga Chandrasekara


People also ask

Does Notepad have autocomplete?

What is Auto-completion. Notepad++ offers automatic completion of various sorts of text after you have entered an initial substring (or prefix), which can save you having to type all of a long word (and potentially save you mistyping it).

Does Notepad ++ have intellisense?

Now the good news! If you are rather a fan of writing your code in a more lightweight editor like Notepad++, you don't have to completely give up the autocomplete support. Even Notepad++ comes with a auto-completion feature.

How do you autocomplete brackets in Notepad ++?

First of all the automatic bracket completion is easy. Just go to Settings >> Preferences >> Auto Completion and uncheck the parentheses, brackets, and curly brackets from the list as shown in the following picture. This will stop auto completion of those brackets.

What should you type to open up the auto complete menu while you code?

Enabling/Disabling Auto-complete While typing your code in the editor: Press CTRL + Space key to trigger the auto-complete pop-up menu manually.


2 Answers

The link provided by Mark no longer works, but you can go to:

Notpad++ 6.6.9

  • Settings -> Preferences -> Auto-Completion -> Enable auto-completion on each input.

I find it very annoying though, since a big autocomplete block is always coming up and I would just like to see autocomplete when I press tab or a key combination. I am fairly new to Notepad++ though. If you know of such a key combination, please feel free to reply. I found this question via Google, so we can always help others.enter image description here

like image 183
Dennis Avatar answered Oct 05 '22 12:10

Dennis


For basic autocompletion, have a look at the files in %ProgramFiles%\Notepad++\plugins\APIs. It's basically just an XML file with keywords in. If you want calltips ("function parameters hint"), check out these instructions.

I've never found any more documentation, but cpp.xml has a calltip for fopen, while php.xml is quite complete.

like image 43
Mark Avatar answered Oct 05 '22 12:10

Mark