M
M
Maxim Sofronov2016-12-10 00:22:23
css
Maxim Sofronov, 2016-12-10 00:22:23

I want to press shift+enter to insert the br tag in Sublime. How?

Still interested in how to wrap the selected text in an h1 tag when pressing ctrl + 1?
Give an example or a link to a manual for creating your own hotkeys?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-12-10
@slo_nik

Goodnight.
You can try to override the settings.
By default, if you select text and press shift+cntr+w, the selected text will be wrapped in a tag.
To override this combination - open
and find

{
  	"keys": ["shift+ctrl+w"],
  	"command": "insert_snippet",
  	"args": {
  		"name": "Packages/XML/long-tag.sublime-snippet"
  	}
  },

copy, open
paste the copied configuration code into this file and change
to
Restart sublime and it should work.
ps Do not forget that this key combination may already be defined for another action.
pss Plugin "Tag" must be installed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question