C# Short Cut keys please.

I

iKiLL

Hi

I am new to C#, i have come from a VB6 backgrouond.

What i am looking for is a list of the Short cut keys for C# and what they
do.

I am in perticulare looking for the keys to jump to a Decleration and then
back to where you came from in the code, like in VB6. (SHIFT+F9 and
CTRL+SHIFT+F9)

Any help with this would be much appriciated.

Kind Regards,
IanK
 
F

Fons

Hi

I am new to C#, i have come from a VB6 backgrouond.

What i am looking for is a list of the Short cut keys for C# and what they
do.

I am in perticulare looking for the keys to jump to a Decleration and then
back to where you came from in the code, like in VB6. (SHIFT+F9 and
CTRL+SHIFT+F9)

Any help with this would be much appriciated.

Kind Regards,
IanK

That all depends on what your environment is, doesn't it. For example, I'm
learning C# with MonoDevelop, on a Linux system. Maybe you are writing C#
code in Windows Notepad.
 
M

Morten Wennevik

Hi Ian,

There are no shortcuts in C#, nor in VB6, but there are a bunch in Visual
Studio. Go to Tools->Options and select Environment-Keyboard.

Go to Definition is F12 (or right-click and select go to definition in the
context menu).
I'm not sure what will get you back
 
C

Chris Mullins

iKiLL said:
I am in perticulare looking for the keys to jump to a Decleration and then
back to where you came from in the code, like in VB6. (SHIFT+F9 and
CTRL+SHIFT+F9)

F12 = Shift F9
Ctrl - = Ctrl+Shift+F9
 
J

Jeff Johnson

I am in perticulare looking for the keys to jump to a Decleration and then
back to where you came from in the code, like in VB6. (SHIFT+F9 and
CTRL+SHIFT+F9)

For completeness, those were NOT the shortcuts in VB6 for the operations you
describe. You must change F9 to F2 for them to be correct. Ctrl+Shift+F9
deleted all breakpoints, and I'm not sure what Shift+F9 did off the top of
my head, but it may have been Set Next Statement, although that could have
been Ctrl+F9....
 
C

Chris Mullins

Well, yea.

He's doing C# development, and he didn't specify what environment he's in.
This makes is pretty same to assume he's talking about Visual Studio.
 
J

Jon Shemitz

Chris said:
F12 = Shift F9
Ctrl - = Ctrl+Shift+F9

I'm not quite sure what Ctrl Minus is doing, but it's not taking me to
where I was when I pressed F12. That's the unbelievably obvious
Shift+Ctrl+8.
 
I

iKiLL

Thanks Chris
That is exactly what i was after.

And Christopher thanks for your help with the link.
i had already found that page before i posted, i read all the sections but i
still couldn't figer out which keys they were.

My appolojies to everyone else for confusing them so much.
I had no idea Microsoft did so many development environments for C#. This is
a Microsoft news group isn't it?
Next time i will try to be a bit more specifice.

Thanks for you time?
Ink
 
J

Jeff Johnson

I'm not quite sure what Ctrl Minus is doing, but it's not taking me to
where I was when I pressed F12. That's the unbelievably obvious
Shift+Ctrl+8.

Unfortunately (or fortunately, depending on your viewpoint), Visual Studio
has several SETS of keyboard shortcuts. It all depends on the choice you
made when you first started VS.
 
G

Guest

You are definitely right!!!
The shortcuts are F12 & Shift+Ctrl+8
The Ctrl+- does take you back, but not directly to the method you came from.
I mean, when you use F12 and then navigate de code, the Ctrl+- takes you back
step by step, if you pressed PageDown two times then you will navigate PageUp
two time before returning to the method you came from. Did I make my self
clear?
 
G

Guest

Yes, right, but ... How to know?
I mean, I know I'm in a Tester Profile, that was my choice, but when I'm
going to ask do I have to say that I'm looking for shortcuts in VS.NET 2005
Team Suite, Tester Profile?
Every time I look for help under the Tester Profile match... well, nothing
matches!
I was wondering about the Class View. I looked and found Ctrl+V,W and it
didn't work for my profile. Later I found it under Ctrl+Shift+C for Testers,
while Developers have Ctrl+V,W.
Does that mean it is madness to ask about shortcuts for VS. It should be
some reasonable rule about it. For example, the Class View wasn't available
in my profile, I has to add it to the View Menu. So I can understand that
keystrokes are different as well. But navigations keystrokes should be the
same anywhere!
am I wrong?
Or else it should be a whole forum about shortcuts under several profiles.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top