让VS.NET自动添加方法括号? [英] Getting VS.NET to add method brackets automatically?

查看:471
本文介绍了让VS.NET自动添加方法括号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个项目中使用VS.NET 2002 w / C#。我希望它能够在定义新方法时自动将{}括号

自动放入。我更喜欢在编码前关闭括号。正确

现在,一个人必须键入开括号,然后按回车键,然后删除一个

选项卡,然后键入关闭括号,然后转到开括号并点击

输入。我以为我读过IDE会自动执行此操作。


后续版本是否按照我希望的方式执行此操作?谢谢。

解决方案

Cristof。


我们将在VS.NET2004中看到一些自动组件,但是<他们不是在2003年。他们有很多免费和商业插件

for VS.NET可以帮助你完成这样的事情。


HTH,


// Andreas


" Cristof Falk" < CF ** @ critterdesign.net> skrev i meddelandet

新闻:i1 ******************************** @ 4ax.com ...

我在一个项目上使用VS.NET 2002 w / C#。在定义新方法时,我希望自动将{}括号自动放入。我更喜欢在编码前关闭括号。对了
现在,一个人必须打开开括号,然后按回车键,然后删除一个
标签,然后键入关闭括号,然后转到开括号并点击
输入。我以为我读过IDE会自动执行此操作。

以后的版本是否按照我希望的方式执行此操作?谢谢。



Cristof Falk写道:

我在一个项目上使用VS.NET 2002 w / C#。在定义新方法时,我希望自动将{}括号自动放入。我更喜欢在编码前关闭括号。对了
现在,一个人必须打开开括号,然后按回车键,然后删除一个
标签,然后键入关闭括号,然后转到开括号并点击
输入。我以为我读过IDE会自动执行此操作。

以后的版本是否按照我希望的方式执行此操作?谢谢。




只需添加...


2003年,当你输入一个右括号时,一个自动de - 发生了,所以

你不必在那里按退格键。


谢谢你们两位。


I''m using VS.NET 2002 w/C# on one project. I''d like it to, when
defining a new method, to automatically put the {} brackets
automatically. I prefer having brackets closed before coding. Right
now, one has to type the open bracket, then hit enter, then delete a
tab, then type the close bracket, then go to the open bracket and hit
enter. I thought I read that the IDE would do this automatically.

Does later versions do this in the way I hoped? Thanks.

解决方案

Cristof.

We will see some of these autocompeletion in VS.NET2004 but
they are not in 2003. There are plenty of free and commercial add-ins
for VS.NET which will help you with stuff like this.

HTH,

//Andreas

"Cristof Falk" <cf**@critterdesign.net> skrev i meddelandet
news:i1********************************@4ax.com...

I''m using VS.NET 2002 w/C# on one project. I''d like it to, when
defining a new method, to automatically put the {} brackets
automatically. I prefer having brackets closed before coding. Right
now, one has to type the open bracket, then hit enter, then delete a
tab, then type the close bracket, then go to the open bracket and hit
enter. I thought I read that the IDE would do this automatically.

Does later versions do this in the way I hoped? Thanks.



Cristof Falk wrote:

I''m using VS.NET 2002 w/C# on one project. I''d like it to, when
defining a new method, to automatically put the {} brackets
automatically. I prefer having brackets closed before coding. Right
now, one has to type the open bracket, then hit enter, then delete a
tab, then type the close bracket, then go to the open bracket and hit
enter. I thought I read that the IDE would do this automatically.

Does later versions do this in the way I hoped? Thanks.



Just to add...

In 2003, when you type a closing bracket, an auto-de-indent happens, so
you don''t have to press backspace there.


Thanks to you both.


这篇关于让VS.NET自动添加方法括号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆