Home
Help
Search
Login
Register
SlickEdit Community
»
SlickEdit Product Discussion
»
SlickEdit®
»
Can't figure out autocomplete with python
« previous
next »
Reply
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Can't figure out autocomplete with python (Read 4849 times)
PouncingPanda
Community Member
Posts: 74
Hero Points: 2
Can't figure out autocomplete with python
«
on:
October 08, 2008, 10:54:31 PM »
Quote
I would like to create a variable in Python called "fin". I type "fin<space>" and it types "finally:" for me. How do I make this behavior stop? Under
Options->Languages->scripting languages->Python->Auto-Complete
I have "Enable auto-completion" turned off. Under "Context Tagging(R)" I have "Auto-list members" turned off as well as "Completion on space". I have "Space always inserts space" turned on.
What else am I missing here?
SE 13 WinXP
Report to moderator
Logged
PouncingPanda
Community Member
Posts: 74
Hero Points: 2
Re: Can't figure out autocomplete with python
«
Reply #1 on:
October 13, 2008, 07:56:04 PM »
Quote
Sorry, I have been having lots of trouble telling autocomplete to behave. I have a vote to rethink how the settings and controls are laid out for this as it is not, in my opinion, particularly intuitive.
Also, *bump*.
Report to moderator
Logged
Graeme
Senior Community Member
Posts: 2827
Hero Points: 347
Re: Can't figure out autocomplete with python
«
Reply #2 on:
October 14, 2008, 12:56:59 AM »
Quote
Yep, it's confusing.
This is called syntax expansion rather than completion because "finally" is part of the syntax of the language. See syntax expansion in the help.
You can use "shift + space" instead of space, to override the syntax expansion. In tools options languages python -> indent you can turn it off and you can also set minimum expandable length. You can also override specific words with your own expansion in python -> aliases. If you feel like hacking, you can also edit python_space_words hash array in python.e.
Graeme
Report to moderator
Logged
Reply
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
SlickEdit Community
»
SlickEdit Product Discussion
»
SlickEdit®
»
Can't figure out autocomplete with python