Visual Studio 2019 can't override CodeStyle option - ide

i am using Microsoft Visual Studio Community 2019 Version 16.6.5;
The problem is that: when i go to
Tools > Options > Text Editor > C# > Code Style > General
if i want to change the "Severity" of a line, the edges of the box of the current Sevrity becomes red. (maybe some problems occurs)
Infact, after I press "ok" button to confirm, it resets all value that i have changed.
this image shows the setting that i changed: that drop down button was "Refactoring only", but I want "Suggestions".
there a link to a YouTube video that I was watching; the link shows what I want to do.
(link directly to the minute 19:00)
Thanks!

Related

How to disable "Tab Tab to accept" tooltip in Visual Studio 2022

How can the following little tooltip be disabled (hidden)?
Or
I know that I can accept with "Tab Tab" or get the next suggestion with Alt+., I don't want that VS shows me that every time (because it overlaps the previous two code lines).
Notes:
I don't want to disable the suggestion itself, I just don't want to see the tooltip.
I'm using Visual Studio 2022, 17.4.2 (Enterprise).
I'm using C#
Is your computer using windows 11?
This tooltip is displayed on my colleague's computer:
But it doesn't show up on my computer:
The only difference is that he is using windows11 and I am using windows10.
I think it's a problem in visual studio. Maybe you can report this problem on DC.

Properties pad doesn't work on Visual Studio 2019 for Mac

Properties pad doesn't work on my Visual Studio 2019 on Mac.
Attachment
I tried it on tools like Button or Label. I restarted visual, closed and opened files and nothing has changed.
On this video: https://youtu.be/76it8xVANbI?t=137 it looks fine but my properties pad doesn't display anything inside xaml file. When I click on filenames on the solution pad, properties pad displays info about those files.
I just searched the document and found this feature exists in Visual Studio 2019 for Mac version 8.4 Preview 1 (8.4.0.1935)
There says:
Xamarin:
You can now use the Properties panel to change your control's
attributes when editing Xamarin.Forms XAML. To open it, go to View >
Pads > Properties.
So you can update your Visual-Studio for Mac to version 8.4 Preview 1 (8.4.0.1935) to use this feather.

Ctrl+Shift+Tab in Visual Studio 2017

I'm using Visual Studio 2017 and have followed the instructions in this answer to change the behaviour of Ctrl+Tab and Ctrl+Shift+Tab to switch to next and previous tab, respectively.
Problem is, while Ctrl+Tab works fine, Ctrl+Shift+Tab only switches to the previous tab when the current document is not a Web Form or similar (e.g. master page). On those pages, the combo switches between Source, Design and Split view instead. How can I disable this behaviour?
I've looked through the keyboard shortcuts in Visual Studio settings and haven't found any others that are mapped to that combination. I've even disabled Web Forms designer (so only Source view is available), but it doesn't help, Ctrl+Shift+Tab simply doesn't do anything then.
Set the shortcut keys for the Window.PreviousTabAndAddToSelection command in the HTML Editor Source View (instead of Global) to Ctrl+Shift+Tab. This has the minor side effect of selecting the previous tab when navigating away from a web form tab, but successfully avoids the unexpected behavior of taking you to the split or design sub tabs.

How to google from the context menu of the Visual Studio 2015 code editor

how can I modify Visual Studio 2015 to be able to search the internet (my fav search engine happens to be google) from the context menu in the code editor?
Ideally, I would like it to open as a new tab in my (default) external browser, because the internal web browser is still...lacking, shall we say?
I found one extension "web search" for older VS, but I have found no extension that works with VS 2015. I found no article that still works.
For comparison, when you're in Chrome, you can select some text, right click and say Search Google for 'what you selected'.
I think this would be handy when learning new technologies from a project that uses those technologies, or just for help.
Ok this turned out to be fairly easy. I just added a tool to Tools, External Tools
Command: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Arguments: https://www.google.com/?gws_rd=ssl#newwindow=1&safe=active&q=%22$(CurText)%22
I enclosed the $(CurText) variable around quotes (%22) so that it would search on the exact phrase.
Then, to make it more accessible and actually put it in the context menu (and other places), I clicked the Move Up button to make it the first command, then customized the Standard toolbar to include Tools.External Command 1. I also added it to Other Context Menus | Html Context and Editor Context Menus | Code Window
Then I also went into Tools, Options, Keyboard and associated Tools.ExternalCommand1 with Alt+G
IMPORTANT: Because Visual Studio (still, in 2015) doesn't save some modifications to the IDE until it shuts down, you need to shut down all other instances of VS and then lastly shut down the instance that you used to enact these IDE modifications for them to "stick". And, if VS 2015 is like previous versions, be prepared for the menu / toolbar modifications to simply go away one day, at which point you'll just have to redo them.

Attach a keyboard shortcut to 'Collapse All' items in solution explorer with Visual Studio 2012

Like I said in the title of this question, is it possible to attach a keyboard shortcut to collapse all items in the solution explorer with Visual Studio 2012?
In previous version; 2010, I was able to create a macro to enable this feature but in Visual Studio 2012, there is no more support for macros.
I'm able to right click onto item in the solution explorer and choose 'Collapse All' but I prefer to just typed 'Ctrl+Shift+C' to do the same job.
FWIW, this is the best I've been able to come up with so far.
Alternative 1
Press Ctrl+ยจ to put focus in the search box above the Solution Explorer.
Press Shift+Tab to move focus to the toolbar.
Use the left arrow to move focus to the left, until you hit the Collapse All button (four times. YMMV).
Alternative 2
Press Ctrl+Alt+l (or whatever your personal shortcut is) to focus the Solution Explorer.
Press Shift+Alt to focus the Solution Explorer toolbar. This puts the focus on the Home button on the toolbar.
Use the right arrow to move focus to the right, until you hit the Collapse All button (three times).
Press Enter.
Alternative 3
Press Ctrl+Alt+l (or whatever your personal shortcut is) to focus the Solution Explorer.
Press and hold the left arrow until you've reached the top node (the Solution node).
Press the up arrow to put focus in the search box above the Solution Explorer.
Press Shift+Tab to move focus to the toolbar.
Use the left arrow to move focus to the left, until you hit the Collapse All button (two times. YMMV).
As you can see in the screenshot below, there is an option called Collapse All and a shortcut key next to it.
Now this shortcut key will not work for you !
Unless ofcourse, you set it up using Tools > Options > Keyboard. The command name is CollapseInSolutionExplorerAction. Search using this command name and assign a shortcut key of your choice.
That's it and you are ready to use your shortcut key !
Source
Visual Studio 2012 / ReSharper 8.0.1:
The command is 'ProjectAndSolutionContextMenus.Project.ReSharper_CollapseInSolutionExplorer'.
I suggest you to try CodeMaid extension for Visual Studio. It provides a command "Collapse All Projects Recursively" that has customizable shortcut (by default, it is Ctrl+M,-). It has some other nice abilities, like switching between .cpp and its .h files, joining lines, etc.
I have searched on the net a way to do this when I have first install VS2012 ..
I have just found the solution, so I share it :)
you can do this by adding your visual studio version to an existing Extension ...
Download the extension for VS 10
Change the extension from vsix to zip
extract it and open the file extension.vsixmanifest
Find this xml section : SupportedProducts
Add this :
<VisualStudio Version="11.0">
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
you can also try version 12 for visual studio 2013 ...
zip it, and change the extension from zip to vsix.
Now you can Install it.
after install it, Goto Tools -> Customise and click on the keyboard button.
Search "CrossProjectMultiProject.CollapseProjects" and assing the shortcut you like.
Have a nice codding.
Please +1 if this help you
ps. sorry for my bad English, im French ;-)