Use hotkeys to insert the corresponding ESLint disabling rules comment.
- Select a single line or multiple lines that have rule problems from the ESLint extension's IntelliSense, and you can either disable these rules for selected lines by
ctrl + alt + d
or for the entire file byctrl + alt + e
. - Disable all rule problems for the entrie file by
ctrl + alt + a
.
Tip
It doesn't always have to select characters, even just only a cursor focus can works. See the preview below.
For single line.
For multiple lines, you can press ctrl + d
to select another pair of rules on the other side.