-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different types of comments depending on the context of the code #149
Comments
Isn't that what https://github.com/suy/vim-context-commentstring is trying to do? |
This plugin solves some problems of comments, it solves problems of HTML and Lua in Vim, but I still have the same problems of JSX (HTML in Js) syntax, the same video of JSX. |
I think https://github.com/tomtom/tcomment_vim that solves embedded filetypes |
You could possibly add this as a feature request to https://github.com/suy/vim-context-commentstring itself |
Same problem. This Stackexchange question claims all I need to make JSX/TSX work with Would definitely be great if this plugin could handle multi-syntax files natively, or, if not, perhaps put some information in the FAQ about how to make it work with additional plugins. |
A tree-sitter-based plugin did awesome work to support jsx and I'm now happy with it: |
This post has made me curious ever since I looked at it, but I tried VScode, it's default behavior seems to be based on file extension alone. For example, i made a file with an .html label, then i entered some java script code, and when i highlighted the line and hit Ctrl + /, it surrounded it with the html comments which is the type of thing you are talking about. Did you install some plugin/extension for VScode that changes that behavior? |
I want to have the same experience of VSCode and some other code editors and IDEs, some examples are coming. As no plugin now solves this problem It seems difficult to apply different types of comments depending on the context of the code, or maybe some focus needs to be put to make this feature available.
JSX
simplescreenrecorder-2021-08-09_16.35.05-montage.mp4
HTML
simplescreenrecorder-2021-08-12_03.36.53-montaged.mp4
The text was updated successfully, but these errors were encountered: