Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid auto-period character after quick type space in Sublime Text 3

I've noticed that in Sublime Text 3, that if I type a word and then double-space quickly after I'm done entering the word in, it automatically places a period after the word

Something like

obj + two spacebar keystrokes

will result in

obj.

I've looked through the preferences and I see all the auto_complete keys, but even with auto completed disabled, Sublime persists in added that period. How can I disable this behavior in Sublime?

like image 944
ariestav Avatar asked Mar 02 '17 21:03

ariestav


3 Answers

It's a macOS feature that was added with Sierra

It can be disabled globally via System Preferences -> Keyboard -> Text and unchecking Add period with double-space as per the article instructions.

Quite a handy feature for most things but was driving me to distraction trying to edit .md files!

like image 70
robin Avatar answered Nov 17 '22 13:11

robin


In addition, you can also disable this with the Terminal by executing:

defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -int 0

If you want to enable it, pass 1.

like image 4
Niklas Avatar answered Nov 17 '22 12:11

Niklas


FYI: this option may also be called "Add full stop with double-space"

Still at: System Preferences > Text

like image 1
publicapps Avatar answered Nov 17 '22 12:11

publicapps