S
S
SuperZombie2021-02-24 16:01:04
Sublime Text
SuperZombie, 2021-02-24 16:01:04

How to insert text by hotkey?

Good afternoon. I set up the LiveReload plugin and there, in order for it to work in html, you need to insert the script:

<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

This can be done by pressing the keys ctrl shift Pand starting to write in the text field: "Live" and select the following option:
60364d54c88f9578438112.png

How can I insert text with a hotkey in the Sublime settings? Or are there options for LiveReload to work by itself (without downloading the server and without pasting this JS code)? I tried to install a browser extension, but without a server it does not work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2021-02-24
@SuperZombie

Make your own snippet: How to add your own snippet to Sublime Text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question