Hi
Are there any indent comments to setup a code block?:
if (condition) [NOW PRESS A SHORTCUT COMBINATION HERE]
{
//Braces appear here underneath, and caret jumps to here
}
//Possibly this could also work with methods etc:
private void MyMethod() [PRESS SHORTCUT]
{ //braces appear, caret jumps to:
//HERE
}
//At the moment, I am doing this:
if (condition) [ENTER]
{ [ENTER]
} [HOME KEY, ENTER, UP ARROW, TAB etc.]
//as it is a common piece of work, I am looking to see if there's a
simple shortcut to setup a code block, opening and closing braces.
Kind regards,
James. 1 2276
If you are using VS 2005: it already has "code snippet" for 'if': type if and
press TAB twice and you will get the code snippet block inserted for you.
However, for methods
"JamesR" wrote:
Hi
Are there any indent comments to setup a code block?:
if (condition) [NOW PRESS A SHORTCUT COMBINATION HERE]
{
//Braces appear here underneath, and caret jumps to here
}
//Possibly this could also work with methods etc:
private void MyMethod() [PRESS SHORTCUT]
{ //braces appear, caret jumps to:
//HERE
}
//At the moment, I am doing this:
if (condition) [ENTER]
{ [ENTER]
} [HOME KEY, ENTER, UP ARROW, TAB etc.]
//as it is a common piece of work, I am looking to see if there's a
simple shortcut to setup a code block, opening and closing braces.
Kind regards,
James.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: sohal |
last post by:
Is there any hot key available to "Go To Definition" of a
function written and back to the same place(i.e function
call). In VB6, we used to use Ctrl+F2 and Ctrl+Shift+F2
to do the same.
|
by: Rita |
last post by:
Hi everybody,
I am a Newbie in C#. My problem is that when I am writing code for an object
in Visual Studio .NET, I cant get the members popup window after the dot
(i.e. "object._") as in Visual...
|
by: Markus Wildgruber |
last post by:
Hi!
On my machine there is a problem with Visual Studio.NET 2003. Since some
days I can't use the tab-key anymore to insert an indent for instance.
Furthermore, Ctrl-Tab to switch between child...
|
by: Jarod |
last post by:
Hey
I am using VS everyday but I feel that I don't use even 30% of its power
because of lack knowledge. What's a good book about VS ? I don't need book
about C# I need book about IDE, how to...
|
by: Me |
last post by:
Hi
Have seen some developers coding with VStudio using the keybord pretty
fast. Does anyone know where could I find a list with microsoft visual
studio
editing shortcuts? Have tried to found a...
|
by: stonny |
last post by:
Hi, I am editing code under visual studio 2003 environment. Does it
have a 'Smart Indent' function like matlab does?
Thanks
|
by: Ryan Liu |
last post by:
Hi,
I have a problem, I am using visual studio 2003 to develop Chinse
application, works fine.
But when I deploy it, Chinse font can not be seen for shortcuts or folder
name created by Visual...
|
by: kcroyals1 |
last post by:
Is anyone having the problem where Visual Studio 2008 hangs for
minutes when switching to Design view of an aspx page? I know there's
a hotfix, but it has been no help. My co-worker might have hit...
|
by: BobLewiston |
last post by:
Can anybody tell me how to change WinForm controls' text color programatically? I have no problem finding the fields to assign colors to, but the compiler doesn't recognize any color I mention,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
|
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...
| |