AdamMaras / vscode-overtype

Because some people actually press the Insert key on purpose.
https://marketplace.visualstudio.com/items?itemName=adammaras.overtype
BSD 2-Clause "Simplified" License
33 stars 15 forks source link

VS Code inserting '.' when adding two spaces after a word #9

Closed lucask42 closed 6 years ago

lucask42 commented 6 years ago

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

screen cap

lucask42 commented 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...

erichall commented 3 years ago

Thanks @lucask42!

I encountered this today (10.14.6), it was called "Add full stop with double-space".

kevincantu commented 3 years ago

Oh and that's where the macOS smart quotes setting is, too!

schneems commented 2 years ago

You can disable this on mac via terminal with:

defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false

Then it requires a restart.

p-i- commented 1 year ago

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.

archcorsair commented 1 year ago

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.

v-iashin commented 1 year ago

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.

jaidhyani commented 1 year ago

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.