spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.3k stars 1.61k forks source link

Tab bringing up completion window and not putting spaces in. #12682

Open PhilipeDE1 opened 4 years ago

PhilipeDE1 commented 4 years ago

Hello, I just switched to Spyder, I really like it so far but there is on thing I dont like. I couldnt find the option that when I press tab it always puts 4 spaces there. It either brings up the completion window or it indents the whole line (when I have the "always indent" option enabled. Is there a way to change that? Its because I like putting spaces in some sections so its better readable, and having to press space so often is really annoying in my opinion. You can see what I mean in the picture. aaaaaaaaaaaaaaaaaaaaaaaaa

goanpeca commented 4 years ago

Hi @PhilipeDE1, thanks for the suggestion.

I can confirm this behavior:

image

and there is currently no way to disable it. We should probably have an option for enabling disabling this? What do you think @spyder-ide/core-developers ?

Screen Shot 2020-05-10 at 17 52 26

Cheers!

bcolsen commented 4 years ago

Putting in an option to disable it would be good.

Would that option also disable the tab completes in the console?

goanpeca commented 4 years ago

Would that option also disable the tab completes in the console?

Good question!

ccordoba12 commented 4 years ago

I think the editor and console options for that should be different.

mpeters2 commented 12 months ago

Is this ever going to be an option? I have a long-term habit of writing a line, then tabbing over to add a comment (from my old C days). But, when tab, a menu pops up, sometimes inserting a [seemingly] random word. I can sometimes short-circuit this behavior by entering a space or two, but this has been driving me nuts for some time.