问题描述
有没有办法配置 VSCode 以便我可以编写多行注释.
Is there a way to configure VSCode so that I can write multi line comments.
在 Rust 中,注释以 //
或 ///
开头.如果我写了这样的评论,那么当我按下 Enter 时,编辑器会自动在新行的开头插入 ///
会很好.
In Rust comments start with //
or ///
. If I write such a comment then it would be nice when I hit Enter that the editor auto insert ///
in the beginning of the new line.
推荐答案
VSCode 中没有设置来执行此操作.这是一个语言功能,必须由支持该语言的扩展程序开发.
There is no setting in VSCode to do this. It's a Language feature, and must be developed by the extension that gives support to the language.
我查看了两个 Rust 扩展(Rust 和
I looked at two Rust extensions (Rust and Rust Code) but none of them presents this feature. You should fill an issue on your extension's repo.
这篇关于如何配置 VSCode 以在多行注释上自动插入注释字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!