How to change reference popup tab position in VS Code - visual-studio

Is there any way to change code reference popup tab position in VS Code? It sometimes too much annoying when move cursor from one line to its top line. And most of time its getting clicked and open in browser that is super annoying.
Is there any way to change its position in any side or corner?

There is not much you can do built-in to change where the documentation appears.
There is a setting: Editor > Hover: Above true/false but false just sets it below the line.
But with the extension Docs View (built by a vscode team member) you can move that documentation into a view that you position in the Side Bar (where the Explorer normally is), the Panel or the new Side Panel (in v1.64 due this week).
And then disable: Editor > Hover: Enabled.
In my testing, the extension does not trigger upon a hover, you have to click on an item to trigger new documentation. That might be a bug in the extension, it is supposed to track cursor position (but that is in the Insiders Build, maybe it is better in Stable).

Related

RStudio: can I pop out the source pane?

I have a dual monitor and I wish I can pop out the "source pane"(where I edit my code), so that I can edit the code in one monitor and track everything else in another.
Does anyone know if this is possible?
Thank you very much for your help.
This feature was just added to RStudio this week. You can try it in our daily builds (0.99.636 or newer):
https://dailies.rstudio.com/
To pop out your file to a new window, either:
Drag the tab outside the RStudio window to where you want your new code window to appear, or
Click the "Show in new window" button on the editor toolbar (it's next to forward/back)
If you try it, let us know what you think on the support forum.
I'm using the latest Studio and encountered similar needs. I found that ctrl+shift+number will suit my needs most of the time since it zooms to the pane that I desire and can also back to the full four window layout.
An additional trick is customize the hotkey to alt+number [1,2,3,4,5] so the pane zooms more handy with one click by your left hand on the keyboard.
Hope it helps.

Turn Off XAML error underlining

This is a simple issue, and I hope someone can help
For reasons I don't think I need to explain, my XAML thinks it has some errors in it in the Visual Studio code editor (which shows as wavy blue underlines across most of my XAML).
Does anyone know how to turn this underlining off in Visual Studio 2012 ?
It's incredibly annoying, and makes my XAML hard to read
Thanks
I would suggest setting the editor for .xaml-files manually.
Go into
Tools->Options->Text Editor->File Extension
Write xaml in the Extension field and choose XML (Text) Editor from the Editor drop down and then click Add.
Your XAML files should now open as ordinary XML files, without error underlining.
You will probably loose a lot of the nice to have features of the XAML editor, but as far as I know (I've struggled a bit with this myself) it is the only way.
Found this on MSDN. There is a specific setting to disable this.
Open the Options dialog by selecting Tools > Options, and then select
Text Editor > XAML > Miscellaneous.
Uncheck the Show errors detected
by the XAML designer check box.
Article from MSDN
It is possible to hide the SquiggleShape by making the surrounding adornment layer hidden or collapsed using the Snoop tool.
To achieve this, the Snoop crosshair tool has to be dragged on the editor window with shift and ctrl keys pressed (keep them pressed a while when releasing mouse button). You should end on some Canvas (with the editor window highlighted), and below there is some ViewStack. Inside, there are some AdornmentLayer, one of which contains multiple SquiggleShape. In the properties section on the right side of the Snoop window, scroll to the Visibility row and select the value Hidden or Collapsed. Now, the squiggle lines are not visible any more.
This involves some manual work, but as long as the file stays open, the squiggle lines are hidden. In principle, it should be possible to write an extension which hides the lines automatically. However, at the moment I don't find the time to do this...
The only decent fix for this silly bug that I can find is right click on the xaml and click open with. Select source code editor (without with encoding). Not a great fix when you consider it gets rid of important errors. But it should help you read it better for the most part.
Another Option for this is to change the color of the line under: Tools > Options > Environment > Fonts and Colors. Change it to the same as the background.
It will turn it off in all other editors also though.

How to increase RStudio editor size?

In Eclipse, I am able to do Ctrl+M while I am typing in the editor to full-screen the editor and temporarily hide all the side-windows. Is there a way to achieve this in RStudio? The code editor portion of the window is very small and yet I don't feel like manually fiddling with the mouse to resize my console/plots/workspace windows.
The view menu doesn't offer much else than zooming in/out.
All shortcuts Alt+Shift+K
You can make the editor fill up the entire rstudio window with Ctrl+Shift+1. Also to restore.
To move between the panes, the shortcut is CTRL + number.
1 - source
2 - console
Adding shift to the shortcut makes that pane fill up the spaces.
The best solution I've found is to use a "source window", i.e. pop out the editor into a separate window temporarily:
This window can then be expanded to fill the whole screen:
Only way I know how is to click on the right hand side of the title bar of the source code section where it has 2 windows symbols. The right-most one expands the code window to the entire left hand side.
Instructions and documentation below from the R studio manual:
http://www.rstudio.com/ide/docs/using/console
If you're running on Linux, you can install RStudio Server, just for use on the same computer. It's almost exactly like the regular RStudio, but inside a browser. I prefer it because I can full screen, and can use the browser's Find in the console.

Make insertion mouse cursor visible in dark Visual Studio editor

I use a color theme with a very dark background, which works great except that VS2010 uses the default insertion point mouse cursor when the mouse is over the editor pane, and that cursor is black — making it nearly impossible to see (literally impossible if the background is actually black as opposed to just very dark).
Is there a straightforward way to tell VS2010 to use a light version of the insertion point mouse cursor instead?
Things I've tried so far:
I installed the Visual Studio Color Theme Editor (which enables theming of the rest of the UI, as opposed to just the editor) in hopes that it would do this automatically if I used one of its dark themes, but no such luck.
I tried using different mouse pointers in Control Panel, but even though the cursor changed in some cases (for instance, if I picked one of the "very large" schemes), it was still black and so nearly invisible.
Edit: In Windows 10 this setting is in a different place:
Open settings
Click Personalization
Click Themes in the right sidebar
Click Mouse Cursor
Select the Scheme called – Windows Black (system scheme)
Click Apply
Original Answer:
I have the same problem in Visual Studio 2012 (Dark Theme) on a Windows 7 guest system running inside VirtualBox.
I have found a slightly better solution:
Basically, you can globally change the cursor scheme:
Open Control panel
Open Appearance and Personalization
Open Personalization
Finally – click Change mouse pointers.
Select the Scheme called – Windows Black (system scheme)
Makes your cursor nicely visible against the dark background while also working great on light backgrounds.
Credit: http://www.marcusoft.net/2011/08/my-mouse-pointer-disappeared-in-visual.html
My temporary solution is that I'm using a custom "text select" cursor on the system as a whole, which I did by finding one that wasn't too outrageous, and then:
Windows 7 and earlier:
Open Control Panel
Open the Mouse applet
Choose the Pointers tab
Select "Text Select" in the list
Click the Browse button and choose the cursor file
Windows 8:
Click the Start button
Type "mouse click" and wait
Choose "Change mouse click settings" -- this gets you the old Mouse Properties dialog box
Choose the Pointers tab
Select "Text Select" in the list
Click the Browse button and choose the cursor file
Of course, this changes the cursor globally, not just in VS2010, and so I have to use one that works against both light and dark backgrounds (in my case, for now, the one from the DeepSky set on deviantart — only the text select one, not the full set).
It appears this is still a problem with Visual Studio and Windows 10 in 2021 (I keep updating this every year...).
Working off of szalski's and T. J. Crowder's solution, it can be changed in Windows 10:
Start button
Type "mouse"
Choose "Mouse settings" from the results
In the Mouse settings window, click on "Additional mouse options" under "Related settings"
Choose the Pointers tab in the new window that opens up
Select "Text Select" in the list
Click the Browse button and choose the cursor you want
As pointed out by Brad Bamford, "beam_r" is a good choice since it looks very similar to the standard pointer, but also has a white outline. I can finally see the cursor in Visual Studio.
You can change the cursor, so you don't mess up the theme you want in Windows.
I made two I Beams that I made available in a github project:
DarkThemeBeam
Use those, if you want.
I hope that's easier and less invasive on your eyes than changing the larger desired theme you want to work in.
Press the Windows button or click Start Menu
Type : mouse
Select: Mouse settings
From the Mouse settings window select: Additional mouse options, from the window, right top.
Select: Pointers tab from Mouse Properties new window.
Now select: Text Select, under customize level.
Click the Browse button and choose your desire cursor.
It's working!

How to make Visual Studio editor stop scrolling past bottom of a file?

In the Visual Studio editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult because you can't just pull the scroll bar quickly all the way down but have to carefully position the cursor so you can still see your code.
How can I make it so that, as in NotePad, when I pull the scroll bar down to the bottom of the file, I see the bottom of the file?
There is a configuration option provided in VSCode for the functionality you specified. To enable it, go to File -> Preferences -> user settings
On the right side of the editor in settings.json paste the below line at the bottom (before closing bracket), save and close.
"editor.scrollBeyondLastLine": false
This will prevent the editor from scrolling beyond the last line.
Inside of VS Code, Press command+,, and search for "Scroll Beyond Last Line" and untick it
If you are willing to use the keyboard instead, pressing Ctrl+End will achieve what you want.

Resources