-
Notifications
You must be signed in to change notification settings - Fork 5
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
Auto Generate Code to Close a Comment #69
Comments
Thanks for reporting! I agree it would be very useful 😄 . I think it would be simple to do in the It would be nice to also include all actions from the VS Code extension or at least make sure it doesn't conflict : https://github.com/scalameta/metals-vscode/blob/master/src/extension.ts#L699 |
Is metals the right place for something like this? I noticed this feature request does not include the “Describe alternatives you've considered“ that I’ve seen on other feature requests. Perhaps this feature can be configured by people who want it in their editor config. |
@mkiwala A lot of the similar functionality is already done in VS Code extension for Metals and I think this would benefit people in general. This could be turned of with |
Thanks for listening. I'm new to metals and vs code, but I'm looking forward to migrating away from intellij as the refactoring support in metals is being developed. Maybe I can contribute to that effort eventually. Anyway, being new here, I didn’t initially understand that this proposed feature to automatically insert I can see how some people would find a feature like this useful. However, especially when I reformatting existing code, I often find editor support for inserting characters — like closing parens, braces, or in this case If this happens to me, I would just turn off “on type” formatting as you suggested. |
Some automatic insertions are already done by the extension in VS Code (like automatic closing brace), which cannot be turned off. For sure let us know via issues etc. if we can make it better. If something annoys or is problematic you it would be really good to know. Thanks! |
When starting a comment like
automatically generate the closing part of the comment like
The text was updated successfully, but these errors were encountered: