A couple of Visual Studio tips

Public forum to share code snippets, screen shorts, experiences, etc.
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

A couple of Visual Studio tips

Post by ic2 »

Hello Nick,

Yes, I see that right mouse menu, I see the light bulb + Quick Actions and Refactoring Ctrl+ on top of the menu, and when I click on that I get nothing else than the light bulb as in my picture.

But I think I know what causes it to work for you and not for me. In https://marketplace.visualstudio.com/it ... TypeToFile I see that in order to have that option, you need to install an extensions, which you most likely did.

Although I probably have already separate files for each class I think it's a good idea to install that, in case I haven't.

Dick
NickFriend
Posts: 248
Joined: Fri Oct 14, 2016 7:09 am

A couple of Visual Studio tips

Post by NickFriend »

No, I haven't installed any extensions....

It probably comes back to what Robert said - I'm talking about classes, structs, enums etc., not individual methods of classes.

Try doing this over the declaration of a class to see what options you get.

Nick
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

A couple of Visual Studio tips

Post by ic2 »

It probably comes back to what Robert said - I'm talking about classes, structs, enums etc., not individual methods of classes.

Try doing this over the declaration of a class to see what options you get.
That's it Nick! Below what I see then in VS 2015 and in VS 2017. For all future readers.
MoveOptionVS2015.JPG
MoveOptionVS2015.JPG (17.55 KiB) Viewed 278 times
MoveOptionVS2017.JPG
MoveOptionVS2017.JPG (33.33 KiB) Viewed 278 times
Dick
Post Reply