M
M
makvitaly2020-09-14 12:26:56
Python
makvitaly, 2020-09-14 12:26:56

Sublime Text 3 how to turn off automatic addition of brackets () after functions?

Essence:
Installed ST 3 + ANACONDA (but even without it) + Python 3.8.

Brackets () are not automatically added after function input.

For example, I enter input, I want to get input () when pressing Enter or Tab (space between brackets).
Or print, I want to get print() (space between brackets).

Tried various snippets, autocompletion, all settings in ST3 or Anaconda containing similar values.
And of course Google.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gennady S, 2020-09-14
@gscraft

So turn it on or off? There is no other way, except for closing on the opening bracket. Unless some separate IDE plugins can add a function from the drop-down list and immediately add brackets, otherwise the editor will not distinguish in any way whether this is part of the text or just a function. Well, then, what's the difference, press Tab, Enter or open a bracket? What does the option do:

{
  "auto_match_enabled": true
}

In my experience, it's better to adapt than to cling to such petty habits. Weather snippets and options won't do it. The more you get used to different environments in different editors, the easier it will be to migrate without wasting time on such trifles.

M
makvitaly, 2020-09-14
@makvitaly

Gennady S
{
"auto_match_enabled": true
}
Enabled by default.
I'm just saying that when you enter the name of the function, a list appears with a list of functions, when you select it, you just enter the name.
5f5f3b4002566221501571.png
I want to get insert() along with a function in a similar scenario.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question