Visual Studio Shortcut keys for Bookmarks - c#

I was trying to practice keyboard shortcuts to become a more productive programmer. I came across a shortcut that said Toggle Bookmark is Ctrl+K,K. But in my environment the shortcut key is Ctrl+B,Ctrl+T.
I am trying to figure out what is causing this difference?
I am running Visual Studio Enterprise 2015 with ReSharper 9.2 working in a C# web project
I doubt the website is wrong because other websites say the same thing.
Source:
http://visualstudioshortcuts.com/2015/

Different keyboard mapping schemes have different shortcuts, you set the one you want in the keyboard options: the default scheme uses Ctrl+K,Ctrl+K for toggling bookmarks, so you have yours set to one of the others, probably "Visual C# 2005" as per "Bookmark Window Shortcut Keys, Visual C# Scheme"

Maybe it's just a mistake in source? Never actually need this shortcut, but tried
CTRL+K+K instead of CTRL+K, and it works

Related

How to make AutoComplete on ENTER only in Visual Studio 2022

As a former Java developer who just switched to learn some C# I find it really irritating that Visual Studio 2022 AutoCompletes its suggestions on pressing anything from a simple "." to "Tab" and "Space" and "Enter".
I would like to keep AutoCompletion feature but make it less aggressive and "enforced". For example I would like to make it work only when I press "Enter". Is there any way I can achieve this?
I tried some googleing, but failed to find anything useful. There is a way to make it work on Tab. But I want it to work on Enter.
I don't think it's possible to change the hotkey for autocomplete in Visual Studio to Enter (at least from the Visual Studio options menu). See this similar question for more details - How to change hotkey for Visual Studio 2022's Intellicode Auto Completion

Visual Studio 2017: C# highlight and surround with parentheses

Is there a way to highlight a piece of code in Visual Studio C# and automatically place a pair of parentheses around the block of code rather than manually put your cursor at the beginning and press '(' and then the end and press ')'?
I've used other IDEs that have had this feature and as simple as it sounds, it's very nice to have.
I'm currently working with Visual Studio 2017.
To my knowledge, Visual Studio doesn't provide that functionality out of the box. However, there are free extensions you can download from the Visual Studio Marketplace that do what you describe such as:
Surround Selection
Selection Wrapper
You can download them from the marketplace using the links above or by searching in visual studio (Menu: Extensions -> Manage Extensions -> perform your search)
Disclaimer I’ve only tried out the first one of these briefly and it appears to work. I will update after checking the second one.
Edit: I've now tried both and both worked. Please note that I use VS2019 so I can't vouch for their performance on VS2017. Of the two options I mentioned, Surround Selection claims to work with VS2017 while the second one only lists VS2019.

Developing for ASP.Net MVC, Visual Studio tab names are meaningless

For all Visual Studio ASP.Net MVC developers - I'm sure you've faced this problem before:
In each one of my controllers, there is usually an Index, Create, Edit and Detail views. All of the default view files generated by ASP.Net's scaffolding are all given the same name, for example: index.cshtml. Granted, they're in different folders.
So it's really easy to get lost in Visual Studio when you have four or five tabs open, all with the same name! Is there a way/plugin to get visual studio show me something more meaningful, such as the controller name/view folder? Or do you developers just rename all of your files once they're generated? I already have resharper so bonus points if it's possible with that.
FYI If you just hover over the tab, it tells you what View/Folder it is in. That's one way to differentiate between the different tabs.
I use this plugin https://visualstudiogallery.msdn.microsoft.com/2e8ebfe4-023f-4c4d-9b7a-d05bbc5cb239 with VS2013 and VS Community 2015.
What I usually do so far is Ctrl+N with resharper:
The Productivity Power Tools extension has a custom document well that lets you color code the tabs. It is usually used to color code them by the project they are in, but it also allows you to use custom regex. You could disable the project based color coding and add custom regexes to color any document tab with "Edit" in the path Blue, and documents with "Create" Green, etc... You will need to turn on the option for "Use full document path for regular expression matching" under the "advanced" tab of the power tool options.
The VS add-in Tabs Studio works for me.
After installing open the Tab Studio add-in manager and select the Disambiguator add-in, i.e.:
Will then give you tabs like this:
Note: it costs $49 after the 30 day trial...

How to create a desktop shortcut based upon user Input?

I am creating setup for a Windows Forms Application using Visual Studio 2010. I know how to create shortcut on the desktop during the setup. My question is,
How to add a checkbox during the setup asking the user "Do you want to create a shortcut on the desktop"?
What I found out, adding your own checkboxes can be a bit cumbersome, but here is an in-depth guide I stumbled upon:
Create custom dialogs for use in your Visual Studio Setup projects
The article explains it for the VS2010 using Visual Studio's own installer dialogs and would probably be the way to go.
For VS2003 there is a bit different guide, might be worth checking out:
Conditional Install of Desktop and Quick Launch Shortcuts
(possible duplicate of this)

Workflow when creating a Windows Phone App, Expression Blend and Visual Studio

I'm busy with a Windows Phone 7 application using Visual Studio 2010 only. I've read that one can also use Expression Blend to develop the app. But there a few things that I'd like to clear up regarding how one works with both these applications when developing an app.
Firstly I know how it works in Visual Studio, you can create the UI with xaml code, and then add interactivity with your C# code. So what exactly is Expression blend for? Is it more geared toward designing the interface and not so much interactivity? Can you do interactivity in Expression blend at all?
From what I can gather (again I'm not sure about this), one works with both these applications. Expression Blend for the UI, and Visual Studio for the back-end/interactivity. Is this correct?
Assuming that the above is correct. How do you go about this? Can you work on the same solution in both programs? What would your typical workflow be like when working on both these programs?
Thanks in advance!
Your assumptions are correct; Visual Studio is used primarily to write the code that makes the programs work, while Blend is used to design the UI. Blend primarily works by dragging UI elements into their desired position, though you can also directly manipulate the XAML if you wish, or both, even.
You can edit the code-behind in Blend, but you'll be missing a lot of functionality Visual Studio offers in that department.
You can have the same solution open in both Blend and Visual Studio and switch between them as needed, but changes to either won't be picked up by the other until you save the modified files.
Personally, I use Visual Studio for the coding, and Blend for the design. Both open at the same time, with the same solution loaded.

Categories

Resources