You are here: PSPad forum > English discussion forum > Re: Python autocomplete
Posted by: taycode | Date: 2015-03-12 15:43 | IP: IP Logged
Does PSPad have context-sensitive auto-complete? Specifically, I am looking for autocompletion derived from imported code. Currently, I see Python autocomplete always populated with built-in Python methods/classes/functions and nothing more.
Posted by: pspad | Date: 2015-03-12 16:12 | IP: IP Logged
PSPad supports 2 kinds of autocompletes:
1. Code clips (Ctrl+Space) - code constructions, can be interactive as in HTML are
2. Autocomplete (Ctrl+J) - it autocomplete any "word" from current document + from code clips [Autocomplete] section. Can be fired automatically after delay of inactivity (Program settings / Editor 2)
Posted by: taycode | Date: 2015-03-12 17:49 | IP: IP Logged
Thanks for your swift response. Sorry, but I am still confused.
Given file
class1.py
class Class1:
def method1(self):
# do stuff
pass
and file
main.py
from class1 import Class1
c = Class1
c. ## I want popup with "method1()" here
Currently pressing CTRL+J does not do anything.
Pressing CTRL+SPACE in any python file gives me a popup containing code snippetsabs
throughcompiler.ast.If
, regardless of what text exists in the file or what imports I have. The popup is always the same in all python files.
P.S. Is there a way to format code with indentations in the forum editor?
Posted by: pspad | Date: 2015-03-12 20:30 | IP: IP Logged
Hello
Maybe I understand now. PSPad doesn't know suggest you anything from different file, e.g. from your class.py
Posted by: taycode | Date: 2015-03-12 21:18 | IP: IP Logged
Yes, that answers my question. The expected functionality is clear to me now. Thanks for the great work on PSPad.
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