如何在Visual Studio代码中粘贴代码格式(How to paste the code format in visual studio code)

编程入门 行业动态 更新时间:2024-10-24 01:49:07
如何在Visual Studio代码中粘贴代码格式(How to paste the code format in visual studio code)

我想在Visual Studio代码中粘贴代码格式。 在sublime或IntelliJ中,热键Ctrl + Shift + v将能够通过自动缩进来超出代码格式。 我发现了很多,但在Visual Studio Code中没有找到任何类似的热键。 有没有人有很好的建议? 你应该注意的是,我的观点是粘贴代码,而不仅仅是格式化代码。 我的目的不仅仅是格式化代码。

I want to paste the code format in Visual Studio Code. In sublime or IntelliJ, the hot key Ctrl+Shift+v will be able to past the code format with automatic indent. I have found a lot, but have not found any similar hot key in Visual Studio Code. Does any one have a good suggestion? What you should notice is that my point is to paste the code, but not only format the code. My purpose is not just to format the code.

最满意答案

有一个扩展可以解决这个问题。

粘贴和缩进

您还必须绑定键组合以触发缩进粘贴。 你会在上面的链接中找到“如何做”。

There is an extension that solves this problem.

Paste and Indent

You also have to bind a key combination to trigger paste with indentation. You'll find the "how to" on the link above.

更多推荐

本文发布于:2023-08-04 10:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1414076.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   格式   如何在   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!