Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Backslash can not be inserted in Sublime Text 3

Tags:

sublimetext3

I am using Sublime Text 3 on Windows with German keyboard. The backslash \ is assigned to alt gr + ß but this key binding is not properly working. (The cursor goes up by several lines.)

Since alt gr is equivalent to ctrl+alt on Windows, I added the following line in sublime-keymap.

{ "keys": ["ctrl+alt+ß"], "command": "insert", "args": {"characters": "\\"} }

But this is not working, neither.

Is it possible to assign \ to alt gr+ß?

Note:

  • "keys": ["ctrl+alt+0"] (instead of "keys": ["ctrl+alt+ß"]) works. But I want use "alt gr+ß" for backslash.
  • "keys": ["ctrl+alt+\u00DF"] is not working.
like image 511
H. Shindoh Avatar asked Aug 04 '17 12:08

H. Shindoh


1 Answers

The following settings works perfect!

In Preferences -> Key Bindings

{ "keys": ["ctrl+alt+["], "command": "insert", "args": {"characters": "\\"} }
like image 69
H. Shindoh Avatar answered Nov 03 '22 18:11

H. Shindoh