Sublime Forum

Sublime inserting a dot on double space bar click

#1

I have a very annoying issue with Sublime 3 where it prints a dot at the end of a word if I click twice on the space bar button.
If by mistake I click twice on the space bar it will put a dot at the end of the var. This is a very dangerous behavior.

$var.

Any ideas why this is happening?

0 Likes

#2

Are you running Sierra?

Do you have TextExpander or other text “macro” software installed?

Blame them.

3 Likes

#3

Thanks. Sierra is to blame. I disabled it and now life is back to normal again. The weird part is that in Atom it didn’t happen to me. Weird.

1 Like

#4

Disabling the feature system-wide is, in my opinion, more workaround than solution. Like smart punctuation, auto-capitalization, and expansions, this is a setting intended only for prose editors, is useful in prose editors, and shouldn’t be obeyed by code editors. ST already doesn’t obey any of those other settings. Can we get that here too?

1 Like

#5

I faced the same double space dot issue with Sublime Text 4 on macOS Sonoma 14. Like Isaac, I was surprised because this had never occurred with any other text editors, mainly Atom, Pulsar, TextEdit, and nano, regardless of having programmed actively on macs for many years.

The article linked by nutjob2 above is quite old (2016) and macOS settings have changed a bit. On macOS Sonoma you can disable the automatic addition of dot by following the route: System Settings → Keyboard → Text Input → Input Sources → Edit → Add full stop with double-space. Disable it and you are good to go!

0 Likes