You are here: PSPad forum > English discussion forum > Autocomplete python libraries
Posted by: pythonui | Date: 2015-05-11 03:29 | IP: IP Logged
Hello,
Is it possible to auto complete python libraries?
Like if I try to write 'impo' then it will show me import and all like auto complete options.
Posted by: pspad | Date: 2015-05-11 05:29 | IP: IP Logged
Yes, in case you will open clip definition file for python (.\Context\Python.def), add section:
[KeyWords]
and put there all words you want to use in autocomplete. Each on separate line.
From this time will work autocomplete automatically (if you set it) or manually (Ctrl+J)
In case you will do it, send me modified clip definition file back and I will include it in future builds
Posted by: pythonui | Date: 2015-05-11 06:33 | IP: IP Logged
Thanks,
I will update python DEF file in sometime.
How to set automatically auto complete ?
Posted by: pspad | Date: 2015-05-11 06:42 | IP: IP Logged
Program settings / Editor 2
Set Autocomplete delay to nonzero value. I suggest 500ms or more
Posted by: pythonui | Date: 2015-05-11 07:03 | IP: IP Logged
Great!
Is it possible to display like this using auto complete?
import os
print os.'options'
Posted by: pspad | Date: 2015-05-11 11:34 | IP: IP Logged
Autocomplete is simple function. Use code clips instead. Look at code clips for HTML - there are interactive. Clips are stored in plain text file.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR