gpt4 book ai didi

Resharper,自动完成后换行

转载 作者:行者123 更新时间:2023-12-01 09:11:33 27 4
gpt4 key购买 nike

我经常发现自己在输入内容时自动完成会添加右括号和 ;但我仍然需要添加参数,完成后,我想跳转到新行。
是否可以使用一些快捷方式?

示例:

GL.ClearColor( -> autocomplete adds ); and puts the cursor inside  => GL.ClearColor(|);
GL.ClearColor(Color.Black|); -> now I've finished typing and my cursor is still inside,
behind the last bracket, but I want to jump outside to new line

我在 VS2010 中使用 Resharper 7。
谢谢

最佳答案

尝试 Complete Statement (also known as Smart Enter) :

Complete Statement, introduced in ReSharper 4, is a feature that inserts necessary syntax elements (braces, semicolons etc.) and gets you to the position to start the next statement, saving you from excessive juggling with the caret. As you work, keep in mind the default shortcut for this feature: Ctrl+Shift+Enter.

Complete Statement (also known as Smart Enter) comes to rescue in numerous scenarios, including auto-closing parentheses, adding semicolons, completing if, while and for statements, and so on.

关于Resharper,自动完成后换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20903478/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com