Sublime Forum

Cannot type backslash on Mac in Linux VM

#1

When I use Sublime Text in my Mac OS, forward slash ‘/’ is typed with shift-7 and backslash ‘’ is typed with shift-alt-7. This works perfectly and the same in all Mac apps.

However, I’m also using Sublime Text in a Linux Virtual Machine running on said Mac and there I cannot type ‘’ with shift-alt-7 - nothing happens at all.

I also cannot type left brace ‘{’ or right brace ‘}’ in the Linux VM using the Mac combinations shift-alt-8 and shift-alt-9.

Any ideas how to remedy this?

0 Likes

#2

Solved this by adding these overrides to my User keymap:

{ "keys": "shift+alt+7"], "command": "insert", "args": {"characters": "\\"} },
{ "keys": "shift+alt+8"], "command": "insert", "args": {"characters": "{"} },
{ "keys": "shift+alt+9"], "command": "insert", "args": {"characters": "}"} },

See also stackoverflow.com/q/27190208/6345

0 Likes