How do I make variables auto-complete in Notepad++? Many editors have it.


I'm working on a program scan file. For every string that begins with a $ character, as soon as I type $, it would show me a drop down list of all variables I have used so far.

This is very useful where there are long_descriptive_variables in code, and I think it is a better way of programming than doing it like $a, $b, $c, but without autocompletion there is more room for error when typing these variables.

link|improve this question

67% accept rate
feedback

migrated from stackoverflow.com Jul 19 '10 at 14:59

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 1 down vote accepted

According to this link:

This feature is disabled by default, but a quick trip to the Preferences will get you using the new auto-complete feature in no time at all. Go to Settings -> Preferences, and switch to the Backup/Auto-competion tab. At the bottom of that screen you’ll see where you can enable auto-completion, and you can optionally turn on the “show function parameters” feature as well. What’s that do? Here’s an example of me using a PHP function, and you’ll notice that it gives me a friendly reminder of the parameters the function takes:

Keep in mind this is only supported in Notepad++ 5.0 or later...

link|improve this answer
feedback

You can use word completion with Ctrl-Enter to autocomplete any word in your document, including your functions, definitions, vars, et cetera.

link|improve this answer
feedback

Notepad++ (v5.5) cannot auto-complete variables or functions you have declared, just language function names and possibly their arguments.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.