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 …
How can I know current editing cursor in which source code area?
jfcherng
#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