Kozuch
Kozuch

Reputation: 2292

Notepad++ autocomplete for multiple files (whole project)

Is there a way to tell notepad++ to include multiple files (libraries) or possibly my whole project for autocomplete so I get suggestions for function names that are in another file?

Upvotes: 6

Views: 2133

Answers (2)

Jean-Francois T.
Jean-Francois T.

Reputation: 12960

You might also have a look at PythonScript plugin (also available in Plugin Manager) and write your own Python script.

The script could:

  1. Parse all the open files and generate a list of all words
  2. Create an auto-completion window based on the words found.

In the doc, I found the relevant functions

Editor.autoCShow(lenEntered, itemList) Display a auto-completion list. The lenEntered parameter indicates how many characters before the caret should be used to provide context.

See Scintilla documentation for SCI_AUTOCSHOW

I will have a look by myself when I get the time.

Good luck

Upvotes: 2

Jean-Francois T.
Jean-Francois T.

Reputation: 12960

It seems not such baked solution exists now.

However, you can vote for the following idea in the Idea Torrent: Idea #181: autocompletion across opened documents

Upvotes: 1

Related Questions