dots in VisualStudio 2010 - visual-studio

Sorry for my question, but can anyone say how can I remove this dots, there is a any shortcur or other way

Edit -> Advanced -> View White Space
or you can use the Ctrl+R, Ctrl+W keyboard shortcut.

Here's how to turn them on, I'd imagine you can use the same menu to disable them again.
If you don't want to click that link, it's under "Edit > Advanced > View White Space"

Related

Visual Studio Code Editor Settings

I have accidently enabled these dotted lines that exist on the left of each line of code as in the image below, I would like to undo it, I have tried to reset VS setting but it stayed there, any idea?
Edit -> Advanced -> untick View White Space
Or press Ctrl+R, Ctrl+W.

text highlighting visual assist x

I am looking for a way to disable the text of similar values being highlighted when you click/edit a variable, i.e. I click enemyValue and type something next to it and it automatically highlights all the text. I have searched and cannot find anything.
Uncheck "Automatically highlight references to symbol under cursor" on the Advanced | Refactoring page of the Visual Assist X Options dialog.
Pressing ESC temporarily removes the highlights.
In your Visual Studio look for "VAssistX" menu tab it's just next with "View" then click "Visual Assist X Options" then expand if not yet expanded the "Advance" TreeView then select "Display" and uncheck the "Highlight find results".
Hope this will help.
Maybe this helps: http://www.wholetomato.com/products/features/color.asp
In particular be aware that "VAX Find Reference" colours are defined at Tools | Options | Environment | Fonts and Colors. Scroll to "VA X ..." in the list box labeled "Display items".
Also pressing Esc disables some of the colouring.

What key shortcuts are to comment and uncomment code?

There were Ctrl+E+C (comment) and Ctrl+E+U (uncomment) in older versions, or Ctrl+K+C and Ctrl+K+U.
But in VS 2012, I can't see key shortcuts:
How to enable those shortcuts?
Keyboard accelerators are configurable. You can find out which keyboard accelerators are bound to a command in Tools -> Options on the Environment -> Keyboard page.
These commands are named Edit.CommentSelection and Edit.UncommentSelection.
(With my settings, these are bound to Ctrl+K, Ctrl+C and Ctrl+K, Ctrl+U. I would guess that these are the defaults, at least in the C++ defaults, but I don't know for sure. The best way to find out is to check your settings.)
You can also add the toolbar in Visual Studio to have the buttons available.
View > Toolbars > Text Editor
Use the keys CtrlK,C to comment out the line and CtrlK,U to uncomment the line.
From your screenshot it appears you have ReSharper installed.
Depending on the key binding options you chose when you installed it, some of your standard shortcuts may now be redirected to ReSharper commands. It's worth checking, for example Ctrl+E, C is used by R# for the code cleanup dialog.
This is how I did it,
Menu Tools → Options on the Environment → Keyboard window
One can alter the default shortcuts following the below steps
Select Edit.CommentSelection in the listbox
Click on "Remove" button
Select "Text Editor" option in the dropdown under "Use new shortcut in:"
Press your own shortcut in the textbox under "Press shortcut keys:"
Example: Pressing Ctrl+E and then C will give you Ctrl+E, C
Click on "Assign" button
Repeat the same for Edit.UnCommentSelection (Ctrl+E, U)
I went to menu: Tools → Options.
Environment → Keyboard.
Show command containing and searched: comment
I changed Edit.CommentSelection and assigned Ctrl+/ for commenting.
And I left Ctrl+K then U for the Edit.UncommentSelection.
These could be tweaked to the user's preference as to what key they would prefer for commenting/uncommenting.
"commentLine" is the name of function you are looking for. This function coment and uncoment with the same keybinding
Shift + alt + a
the command palette is great for finding shortcut keys.

How to move "Solution Explorer" tab in Visual Studio

Does anyone know how to move the "Solution Explorer" tab in Visual Studio 2005? It's on the left, and I can't move it to the right.
Thanks,
Alan
Click on the title bar, and drag it to the right portion of the screen. Eventually you'll see a compas like structure popup. Make sure you hover over the right area and let go of the mouse button. That will bind it to the right side.
You Can go to tab Windows -> Reset Windows Layout. Other options like Dockable, Floating and Tabbed Document are also their.
you move the whole solution explorer while its floating on the screen. Right click--> Tabbed Document.
right click again --> Vertical tab
To complement what the accepted answer gives, if you want it to look like this (on the left side):
Do the exact same procedure, and then after it has attached to the left side, click on "Auto Hide":
This way, it will stay visible on the toolbar.
This is an old question, but for anyone looking to change tab placement in Visual Studio 2019, right click the open tab, select [Set Tab Layout] then a position: Left, Top, Right.
You can only drag the panel by the title bar to the central compass overlay while it is pinned and not set to auto hide. You can click the pin icon in the title bar to toggle this.
Go to View-> Appearance -> Move Side Bar Left

Is there anyway to remove Design (and Split) views from Visual Studio 2005/2008?

I am trying to find a way to disable Design / Split views from appearing in Visual Studio. I figure there's no way to completely disable it, but I still can't seem to find a way to remove the shortcut (F7), or remove the buttons from the bottom bar.
The best I found was:
for HTML/ASPX - Options -> HTML Designer -> start pages in source view
for XAML -> Options -> Text Editor -> XAML -> Misc -> Always open documents in full XAML view
The keyboard shortcut is listed under View.ToggleDesigner.
I just want to be able to disable the Design view; the F7 shortcut is rather handy for swapping between source and code behind when doing web development.
Short blog post here apparently has an answer for this problem
http://renaissauce.com/thoughts/visual-studio-2008-tip-remove-the-design-split-source-button-bar/
You should be able to delete the keyboard assignment for F7 in the Keyboard Customization screen. All hotkey assignments are customizable AFAIK.
I doubt there's any way to get rid of the buttons on the UI.
Here is a solution for XAML

Resources