R
R
Roman2018-09-16 10:47:23
HTML
Roman, 2018-09-16 10:47:23

How to comment code in Sublime Text 3?

In Sublime Text 3, I can't comment out code. I try CTRL + / does not respond. EMMET installed. What could be the reason?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel, 2018-09-16
@yagyar001

Ctrl + shift + /
At the same time, it is possible that it conflicts with something, you can try to reassign the keys in the config

G
GloriusGlo, 2021-10-27
@GloriusGlo

By default it works with the button in the alphabetical part of the keyboard (which is on the left side of the right shift).
To make the "/" button work in the numeric part of the keyboard, add to Preferences->Key Bindings:
{ "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true } }

G
gaparchi, 2021-02-11
@gaparchi

It is necessary that the correct association be chosen. those. in plain text will not work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question