How can I make Visual Studio XAML code editor not lose focus when switching among documents? - visual-studio

I'm editing in Visual Studio 2013 two XAML files.
I'm doing it using "Vertical Split" mode doing edits in one part - XAML code editor and tracking changes with my eyes in second part - visual designer.
When I switch between these documents using Ctrl+Tab keys, my cursor is gone from code editor so I must use mouse to bring it back. How can I enforce the IDE to not touch my cursor?

I think you can assign this by going to Tools -> Options -> Keyboard and searching for SplitPane. You should be able to assign shortcut keys for the following values:
Window.NextSplitPane
Window.PreviousSplitPane
NextSplitPane will cycle among the splits

Related

Syntax coloring on unity visual studio?

For some reason nearly everything is simply white, I'd prefer the more varying colors based on like, what kind of thing you are typing. I just recently started so I don't know the terminology. I see a lot of Unity tutorials that have coloring like that. Thanks!
I'm using a cs file
I think what may work for u is this
Inside Visual Studio - go to Tools and scroll to Options
Text Editor
C# and then Advanced
and choose Visual Study 2019 under Editor Color Scheme
You may need to reload the project. In Solution Explorer it may state:
Assembly-CSharp (unloaded)
Right click this text and select Reload Project from the resulting context menu

Configure VS2015 Intellisense "accept" key [duplicate]

I would like Visual Studio to autocomplete the current entry in the intellisense menu only when I hit tab.
Autocompletion being triggered, for example, when I press a period, is forcing me to hit escape every time I'm writing something that cannot yet be autocompleted, to avoid that what I'm typing gets replaced with a random entry.
Is there an option to configure this?
I'm using Visual Studio 2015, and programming in C#.
Example: here I'm typing Log, which is a class for which I haven't yet added the appropriate using statement. None of the suggestions is the good one. If I hit . now, the autocomplete feature will write EventLogProcessor, which is not what I want.
Please note that this question has nothing to do with VIM, this is not a duplicate of the question linked at the top.
Use Toggle Between suggestion and Standard completion mode option of visual studio .. It will now only suggest .. and if you press Tab it will complete your choice ..
Edit -> IntelliSense -> Toggle
For Visual Studio 2012, from the Menu Bar,
Select Tools -> Options
In the left pane, expand Text Editor -> C#
Select InteliSense
The characters that commit are listed in a text box

Visual Studio Shortcut to Move from T-SQL Editor to Results Grid

I'm using the Transact-SQL editor in Visual Studio 2012 to run queries as well build my database objects.
When you run a query, the results appear in a grid. This grid does not seem to be considered an open file nor an active tool window; rather it appears as if it's an extension to the status bar. Does this container have a name?
I find it very annoying to get there by mouse. Is there a keyboard shortcut for moving to/from the query/results?
You can use Ctrl+Shift+F6 for jumping from the query to the result grid.

How can I increase width of Selection Margin or prevent block highlighting in Visual Studio 2010 text editor?

When I moved from Visual Studio 2008 to Visual Studio 2010, there seems to only be a small section of pointing space (for the mouse) to click and drag and click again, to grab a few lines of code. This is about 8 pixels wide and is referred to as the Selection Margin. I often used this area in Visual Studio 2008 to select/copy/paste code. Now I have to rely on using the keyboard, which is not difficult, but if I'm using the mouse, Visual Studio is not very intuitive or usable. Is there a way to prevent the highlighting of lexical groups (where the expand/collapse or plus/minus sections are) so I can just select the lines of code instead? They seem to call this block highlighting. Most of the surface area to the left of the text in Visual Studio 2010 seems to be dedicated to the block highlighting. The text editor freezes when a lexical block of code is highlighted and I cannot use the right context menu. The right context menu is also only available from inside the text editor now, so I have to select my lines in that 8 pixel region, then move my mouse over to the right to copy. My productivity in Visual Studio 2010 has decreased substantially because of this change.
I'm wondering if anyone has written any extensions with the Visual Studio 2010 editor to fix these issues?
http://www.codeproject.com/KB/macros/WriteExtensions.aspx
Options > Text Editor > All Languages > Show line numbers. This allows you to have more space to select and copy the lines, but you still must go over to the right (where the code is) to copy.
Have you tried to select in a so called 'Continuous Stream Mode' which is supported by VS 2010 by default? Here's what I mean -> Hold down the SHIFT key and click in the Selection Margin(located at the far left of the Editor window, to select a whole line.) to extend your selection line by line.
Regards,
Evgenia

Visual Studio: How to make its UI fast, lean and minimal?

Visual Studio can be quite slow to open and work with. The menus and auto-hide windows can get sluggish and commands take a while to start. What are the list of things one can do to make the UI of Visual Studio load faster and operate faster? What settings can one change to make it feel lean and minimal?
PS: I know Visual Studio Express is way leaner and faster. However, I rely on some Visual Studio addons, and addons are not supported in Express.
PS2: I have already closed all unnecessary windows. All diagnostic windows are on auto-hide. And all the tool bars are closed. I work almost completely using keyboard shortcuts.
Here are some tips, actually collected from following blog posts
###VS2008
Improve Visual Studio's Source View Performance
Tips to improve performance of visual studio IDE
Visual Studio 2008 Tweaks
###VS2010
Visual Studio 2010 Performance Part 1: Startup
Visual Studio 2010 Performance Part 2: Text Editor
Visual Studio 2010 Performance Part 3: A Technical Update
###Tips
Turn off background HTML validation.
Go to Tools / Options and select Text
Editor / HTML / Validation in the
tree view on the left side. Uncheck the Show Errors
check box.
Turn off AutoRecover. Go to Tools /
Options and select Environment /
AutoRecover in the tree view.
Uncheck the Save AutoRecover check box.
Close your property grid (View /
Properties Window)
web.config should not have <compilation batch=”false” />
Turn off AutoToolboxPopulate (Tools
-> Options -> Windows Forms Designer set AutoToolboxPopulate False)
Turn off Track Active item (Tools ->
Options -> Projects and Solutions
uncheck Track Active Item in Solution
Explorer)
Disable Navigation Bar(Tools ->
Options -> Text Editor -> C#, uncheck
Navigation bar)
Move file in App_Code into a class
library project
Disable validation Options for HTML
Editing (Tools -> Options ->
Validation -> Clear show error
checkbox)
I know that VS 2008 slowed down from VS 2005. I feel this pain every once in a while when im doing a quick Find or Find-Replace, or Find-In-Solution...etc. The UI sometimes isn't as fast as your hands are (when you're using keyboard shortcuts).
I found that just slowing down sometimes is the way to do it (it sucks, but then again, so does many things about Windows).
If it's load times youre concerned about; disable the startup stuff (from the Options menu). Here you can choose to load a blank screen upon VS load AND not to subscribe to any news feeds. (this helps alot depending on your internet connection).
you can also, via Options, adjust the visual animations that occur, as well as just disabling them altogether.
If there's anything else im missing, which im sure there is, i'd really like to know as well!
One thing that can potentially speed up visual studio is to disable document navigation.
Go to Tools -> Options -> Text Editor -> and uncheck 'Navigation Bar'.
This is definitately an option in 2008, pretty sure its in 2005 too.
Another option to try:
Go to Tools -> Options -> Text Editor and Uncheck 'Track Changes'.
Without knowing the information I posted in the comments I will say the typical stuff. Turn off all addons, if you are using vista or 7 switch to basic vs aero, check all running processes. This is where I would start.

Resources