You are here: PSPad forum > English discussion forum > Autocomplete problem
Posted by: idefix2 | Date: 2025-02-09 14:52 | IP: IP Logged
Autocomplete would be a very useful feature, but there is a problem that makes it nearly unusable (maybe I can solve it through the configuration, but I have not found how) . It does not recognize variable names that consist of a single character. If I have declared:
var i: integer;
everytime I want to use the variable i, PSPad "autocompletes" it to some name starting with i. For local variables in short procedures, I usually use very short names, so this happens (too) often.
Another problem in the context of short names: When I mark a variable name, PSPad highlights all occurrences of that variable name. While this is very useful (I don't want to turn the feature off), it should apply the "whole word" logic to the highlighting when the marked string is itself a whole word. When I mark the variable i, it highlights all occurrences of the character i in the program text. Only if the marked string is part of a longer word, all occurrences of the string should be highlighted, even if they are part of a longer word.
Posted by: pspad | Date: 2025-02-09 17:08 | IP: IP Logged
Hello
Increase autocomplete delay in the program setting / editor 2 or set delaj to zero and when you want, you can call autocomplete manually with CTRL+J
I will take a look, if there is way to improve this behavior
Posted by: idefix2 | Date: 2025-02-10 19:23 | IP: IP Logged
Thank you - increasing the delay has reduced the problem somewhat, but it would still be fine if you could address both Problems I mentioned in a the near future 
Editor PSPad - freeware editor, © 2001 - 2026 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR