Closed lucask42 closed 6 years ago
OK so this is probably a mac only issue. There is a setting to insert periods on double spaces in the system preferences => Keyboard => Text tab.
Odd that the OS wasn't inserting the periods in VS Code unless Overtype was enabled...
Thanks @lucask42!
I encountered this today (10.14.6), it was called "Add full stop with double-space".
Oh and that's where the macOS smart quotes setting is, too!
You can disable this on mac via terminal with:
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
Then it requires a restart.
On Ventura it's a little harder to find. System Settings -> Keyboard -> Text Input -> Input Sources -> Edit. (New dialog appears). "Add full stop to double space" -> toggle OFF.
On Ventura it's a little harder to find. System Settings -> Keyboard -> Text Input -> Input Sources -> Edit. (New dialog appears). "Add full stop to double space" -> toggle OFF.
Thanks this did it for me. After I upgraded to Ventura it seems that it was enabled by default.
Is there a way to isolate the setting for VSCode specifically without installing extensions? Seems like a nice feature to have for other OS apps.
On Ventura it's a little harder to find. System Settings -> Keyboard -> Text Input -> Input Sources -> Edit. (New dialog appears). "Add full stop to double space" -> toggle OFF.
"Get a Macbook" they said. "It just works" they said. "You won't have to spend so much time hunting down obscure settings to fix things" they said.
I assume in the next version you'll have to sneak past a tiger and answer three riddles from a wizard.
Environment: VS Code 1.25.1 macOS 10.13.6 tested with my usual other plugins installed and also with them all disabled tested with my usual user settings and workspace settings and also with them all cleared out tested with Overtype mode on and off
Steps to reproduce: Install and enable Overtype open any file go to the end of a word and press the spacebar twice -or- type any word and then press the spacebar twice
Expected result: Two spaces
Actual result: One space, a period, and another space
screen capture: https://drive.google.com/open?id=1_LTljRKBqjVlaOO3_hAy-h-Hz4sndFLz