Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1598 API call tips overload selection

open
nobody
5
2012-11-13
2008-08-12
jarvis
No

When you are entering a function that has several overloads, each with one more parameter than the last, Notepad++ is attempting to guess which overload you are entering by how many parameters you have entered. This is good.

However, it is not moving to the next overload when I would expect. E.g.

I have a function called SUBSTR in SQL. It has 2 overloads as follows:

SUBSTR(CHAR str, NUMBER postition)
SUBSTR(CHAR str, NUMBER postition, NUMBER substring_length)

If I type in:
SUBSTR(test1,test2

it is showing the first overload. When I type another comma, it should show the second overload because I'm now on the 3rd parameter. However, the first overload is still shown until I put another comma:

SUBSTR(test1,test2,test3,

which would indicate another (non-existant) overload. So although it is trying to guess which overload I am entering, it is one parameter behind.

Discussion