我想在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.
更多推荐
发布评论