473,407 Members | 2,312 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,407 software developers and data experts.

Simple question about Keyboard shortcut.

Would anyone know how to use a keyboard shortcut so at the end of a method
syntax I can use that shortcut to create the method's pair of { } brackets
?

Thank you much,
Aranis
Feb 21 '08 #1
2 1349
"Aranis" <ar*****@verizon.netwrote in message
news:gi5vj.2289$JF.919@trnddc01...
Would anyone know how to use a keyboard shortcut so at the end of a method
syntax I can use that shortcut to create the method's pair of { }
brackets ?

Thank you much,
Aranis



So you want a macro for Visual Studio that just inserts the string "{ }" at
the cursor location when you press a specific key combination?

Doesn't seem like much of a shortcut...I mean { } is only 3 keystrokes as it
is, or maybe I'm not following your question.
--
Roger Frost
"Logic Is Syntax Independent"

Feb 21 '08 #2
Hi Roger, thanks for the reply.

What I am asking is like Sub in VB. At the end of a method declaration,
as soon as you hit the Enter key, VS creates the EndSub for you and the
cursor goes where you need to implement the method code. It would be
mighty nice to have that in C# also where you could just hit the enter key
at the end of the method declaration and have a pair of brackets created
with a line in between them where the cursor is in the right place so you
could just start writing the code.

I almost believe that there must be a flag that can be set in VS to have
this thing activated.

Aranis

"Roger Frost" <fr*****@hotmail.comwrote in message
news:8E**********************************@microsof t.com...
"Aranis" <ar*****@verizon.netwrote in message
news:gi5vj.2289$JF.919@trnddc01...
>Would anyone know how to use a keyboard shortcut so at the end of a
method syntax I can use that shortcut to create the method's pair of { }
brackets ?

Thank you much,
Aranis


So you want a macro for Visual Studio that just inserts the string "{ }"
at the cursor location when you press a specific key combination?

Doesn't seem like much of a shortcut...I mean { } is only 3 keystrokes as
it is, or maybe I'm not following your question.
--
Roger Frost
"Logic Is Syntax Independent"

Feb 21 '08 #3

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

Similar topics

4
by: The Flyer | last post by:
Hi Sorry for posting this message to so many groups, but I was not sure which group the windows keyboard experts would be reading, so I ventured to post it to all of them. I want to map or...
13
by: Ole Hanson | last post by:
Hi I am in need of a way to launch my WinForms-app (app.exe) just by pressing a keyboard combination like (Ctrl-Alt-P). This functionality should be present "out of the box" after the app...
0
by: Anders S. Willumsen | last post by:
Hi I have an app in system tray (by the clock), and I need somekind of keyboard shortcut to activate it. I know I can click on then icon and get a contex menu, but I need to be able to activate...
1
by: Esemi | last post by:
Hi What is the best why to create a custom keyboard shortcut (eg alt-a) on a ..Net form using C#? Thanks
3
by: nhmark64 | last post by:
Hi, Sometimes when I am cutting and pasting it looks like the keyboard layout changes; for instance ',' and 'w' are interchanged. Is there a better way to fix this problem than exiting then...
2
by: =?Utf-8?B?QmVu?= | last post by:
Hi all, In VB6's IDE, there a keyboard shortcut Shift-F2, that would take me directly to a procedure/fuction's definition. Is there a similar feature in VS2005? Thanks, Ben
3
by: ommail | last post by:
I have two RichTextBox controls on a form, and single ContextMenuStrip control which serves for both textboxes. I need to determine which RichTextBox control invokes an event handler in...
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
0
by: Aads | last post by:
Hi there, Is there any keyboard shortcut for moving the splitter up and down like we did in SQL 2000 with shortcut CTRL+B. Is there a way to do the same in SQL 2005? Thanks, Aads
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.