S
S
Sergo Zar2021-12-04 21:51:21
Sublime Text
Sergo Zar, 2021-12-04 21:51:21

How to bind on/off line wrapping?

I want to bind line wrapping on and off. How to do it?
I tried like this (in keyboard shortcuts settings):

{ "keys": ["alt+z"], "command": {"word_wrap": true}},
{ "keys": ["alt+shift+z"], "command": {"word_wrap": false}}

but it doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergo Zar, 2021-12-04
@Sergomen

Happened!
I found in the list of default abbreviations:

{ "keys": ["f6"], "command": "toggle_setting", "args": {"setting": "spell_check"}}

and changed it like this:
{ "keys": ["alt+z"], "command": "toggle_setting", "args":{"setting":"word_wrap"}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question