You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The entries in the code completion window are probably sorted alphabetically. As a result, attributes of a class with visibility "private (i.e. __)" get lost in the long list of Dunder entries.
For programming the methods of a class, it would be better if its attributes and methods came first in the code completion list.
The text was updated successfully, but these errors were encountered:
functionComparePythonIdents(const S1, S2 : string): Integer; overload;
Var
L1, L2 : integer;
begin
L1 := Length(S1);
L2 := Length(S2);
if (L1 > 0) and (S1[1] = Char('_')) and (L2>0) and (S2[1] = Char('_')) then
Result := CompareText(S1, S2)
elseif (L1 > 0) and (S1[1] = Char('_')) then
Result := 1elseif (L2>0) and (S2[1] = Char('_')) then
Result := -1else
Result := CompareText(S1, S2)
end;
Since starting using the JEDI language server I keep the order the server provides, which I think is similar to the one above.
It was not clear to me, what you think is the "best" order. Could you please give an example?
The best order is by relevance.
For a python file with a class, this means that on "self." all attributes and methods of the class, then the attributes and methods of the superclass etc. are offered.
Here an example with PyCharm (which missing attributes firstname, lastname, ..., of the superclass):
I thnik that for methode brackets should be showed and inserted when selecting a code completion.
The entries in the code completion window are probably sorted alphabetically. As a result, attributes of a class with visibility "private (i.e. __)" get lost in the long list of Dunder entries.
For programming the methods of a class, it would be better if its attributes and methods came first in the code completion list.
The text was updated successfully, but these errors were encountered: