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
Fons - 27 Nov 2006 10:03 GMT
> Hi
>
[quoted text clipped - 11 lines]
> 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.
Morten Wennevik - 27 Nov 2006 10:11 GMT
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
> Hi
>
[quoted text clipped - 13 lines]
> Kind Regards,
> IanK

Signature
Happy Coding!
Morten Wennevik [C# MVP]
Arhak - 27 Nov 2006 17:01 GMT
Please, say what developer are you using.
Visual Studio, Mono, Eclipse?
Chris Mullins - 27 Nov 2006 17:50 GMT
"iKiLL" <iKill@NotMyEmail.com> wrote > Hi
> 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
--
Chris Mullns, MCSD.NET, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins
Arhak - 27 Nov 2006 18:22 GMT
Those are for Visual Studio.
> "iKiLL" <iKill@NotMyEmail.com> wrote > Hi
> > I am in perticulare looking for the keys to jump to a Decleration and then
[quoted text clipped - 7 lines]
> Chris Mullns, MCSD.NET, MCPD:Enterprise
> http://www.coversant.net/blogs/cmullins
Chris Mullins - 27 Nov 2006 18:59 GMT
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.
--
Chris Mullins, MCSD.NET, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins
> Those are for Visual Studio.
>
[quoted text clipped - 10 lines]
>> Chris Mullns, MCSD.NET, MCPD:Enterprise
>> http://www.coversant.net/blogs/cmullins
iKiLL - 27 Nov 2006 19:21 GMT
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
> Well, yea.
>
[quoted text clipped - 19 lines]
>>> Chris Mullns, MCSD.NET, MCPD:Enterprise
>>> http://www.coversant.net/blogs/cmullins
Jon Shemitz - 27 Nov 2006 19:16 GMT
> "iKiLL" <iKill@NotMyEmail.com> wrote > Hi
> > I am in perticulare looking for the keys to jump to a Decleration and then
[quoted text clipped - 3 lines]
> 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.

Signature
.NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net
What you need to know.
Jeff Johnson - 27 Nov 2006 19:35 GMT
>> "iKiLL" <iKill@NotMyEmail.com> wrote > Hi
>> > I am in perticulare looking for the keys to jump to a Decleration and
[quoted text clipped - 8 lines]
> 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.
Arhak - 27 Nov 2006 19:56 GMT
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.
Arhak - 27 Nov 2006 19:36 GMT
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?
> 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.
Jeff Johnson - 27 Nov 2006 18:27 GMT
> 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....