473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Automatic parathesises and braces

I'm going from VB.net.

Is there a way to have VS automatically add braces to methods? Also in VB,
you do not need to add () for a method or function that does not need
parameters. Is there a way to have VS automatically add parathesis to
function calls? This messes me up more than the braces.

Thanks.

Oct 9 '08 #1
2 1999
Not that I know of... without the brackets, you have a "method group",
which is an essential part of creating a delegate - so the syntax
without the brackets has a partially valid (but different) meaning. To
be honest, I wouldn't worry about it - give it a little while (not
long, honestly) and you'll be bracing and bracketing by default - I
moved to C# from VB6 (a very long time ago, it feels) - and it didn't
take long to get accustomed (but then, I also write ECMA script...).
That said, if I go back to VB I struggle to do ##anything##...

Marc
Oct 9 '08 #2
Hi Denny,

Thank you for using Microsoft Managed Newsgroup Support Service, I'm
Zhi-Xin Ye and I will work with you on this issue.

As far as I know the C# IDE does not support this kind of auto-completion.
These features are specific for VB only, as you can see the options under
this path:

(In the IDE)
"Tools" menu -"Options..." -"Text Editor" -"Basic" -"VB Specific";

There are options like "Automatic insertion of end constructs", "Pretty
listing(reformatting) of code", etc. which are for the auto-completion.

I know how unaccustomed it is when shifting from one language to another. I
have the same experience when I shifted from C# to VB.NET, but it didn't
take long to get accustomed with the new language.

Sincerely,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Oct 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michael | last post by:
>>Right. Then we can have "does the brace go on the same line or the >>next line" wars. >> >> > > int main (void) > { > if (true) > { > }
97
by: Kjetil Torgrim Homme | last post by:
often when re-factoring code, I need to change the indent level of some chunk of code. due to the lack of an end marker, my Emacs has to use heuristics when re-indenting, and this will...
16
by: Jason | last post by:
Programming recently I was the habit of leaving out the braces on if statements if the branch only applied to a single line, assuming it would all work and be equivalent to "if(condition) {...
14
by: Andrew Bullock | last post by:
I thought the two bits of code should be the same? They aren't evaluating the same for me .... Can someone tell me why please? Thanks Andrew
8
by: NickP | last post by:
Hi there, Either I have come across some kind of "undocumented feature" or I have a rather curiously irritating bug. When typing the intellisense is going into full bork mode and actually...
3
by: myjish18 | last post by:
Hello, We have a DB2 UDB database v8.2.7 (db2 v8.2 fixpak 14) on AIX 5.3 which has Automatic Storage (AS) enabled. We want to disable automatic storage on entire database and/or disable...
2
by: mauricioarango | last post by:
Hi everybody, I'm a PHP beginner, so please forgive me for this question. I am working on code someone else wrote a long time ago. The code was written without curly braces in many places, which...
22
cat
by: Jag | last post by:
I've read parts of K&R's ANSI C v2 and this is what their cat looked like but when I compared the speed of this code to gnu cat, it seems very slow. How do I optimize this for greater speeds? is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.