Sublime Forum

How can I know current editing cursor in which source code area?

#1

For example, I would like to know if the current cursor is in a code comment, so I will turn off the auto-suggestion function …

0 Likes

#2

if the current cursor is in a code comment

https://www.sublimetext.com/docs/api_reference.html#sublime.View.match_selector with comment as the selector.

1 Like

#3

thank you. works like a charm.

0 Likes