本文介绍了如何配置 VSCode 以在多行注释上自动插入注释字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法配置 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 扩展(RustRust 代码)但没有一个提供此功能.您应该在扩展程序的存储库中填写问题.

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 以在多行注释上自动插入注释字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 09:59