Visual studio smooth PageUp/PageDown? - visual-studio

I find the problem with PageUp/PageDown in Visual Studio (and in most editors for that matter) is that it navigates one complete page at a time, and does so instantly. Doing it multiple times you will eventually lose the notion of where you are in the code and lose track where you came from.
My questions:
Is there any way I could modify PageUp/PageDown to jump half a page?
Is there any way I could make PageUp/PageDown scroll 'smoothly' and not instantly? (think Lerp)
To my knowledge this doesn't exist out of the box, and I couldn't find any plugins to do it.
EDIT: I do NOT use the mouse when programming. Suggesting to use the mouse wheel or a 'touch screen' defeats the purpose of staying in the main row.

Here is my fork of the fork of SmoothScroll extension:
https://github.com/monoblaine/SmoothScroll
Preview
Configuration (only page scrolling)
Description
Normally, it supports scroolling the editor smoothly using Alt + Wheel but I don't use the mouse during coding, either. I use the numpad keys to send wheel events through AutoHotkey.
You can use the following script to send the keyboard & mouse event necessary to create a smooth page scroll using Alt + NumpadUp and Alt + NumpadClear hotkeys:
#IfWinActive ahk_exe devenv.exe
!NumpadUp::Send {Blind}{WheelUp}
!NumpadClear::Send {Blind}{WheelDown}
#IfWinActive

Related

Is it possible to access the Diamond guide in Visual Studio from the keyboard only?

I have taken to participating in mouseless Monday's and Friday's. I have set my windows float and dock tabs to hotkeys that allow me to pull them out or put them back in; however, I want to be able to choose which location to put the tabbed document in. I operate in landscape mode so I regularly have a bottom and a top window in visual studio. I would like to press a hotkey and send the selected document to that part of the diamond guide. Anyone know a plugin or how I can do this?
There's an entire article dedicated to navigating the IDE using just the keyboard, with a section on docking windows and tabs using the diamond guide from the keyboard. So yes, it is possible, and you don't need a plugin for it:
To move and dock tool windows from the keyboard
Navigate to the tool window you intend to move and give it focus.
On the Window menu, click Dockable.
Press ALT + Space and then choose Move.
The docking guide diamond appears.
Use the ARROW keys to move the window to a new location.
The mouse pointer moves with the window as you use the ARROW keys.
When you have reached the new location, use the ARROW keys to move the mouse pointer over the correct portion of the guide diamond.
An outline of the tool window appears in the new docking location.
Press ENTER.
The tool window snaps into place at the new docking location.
Alternatively, you can cheat by simply controlling the mouse pointer with the keyboard, through a nifty system accessibility feature called MouseKeys.

Make Visual Studio 2010 display more lines in code editor

With a 14" LCD monitor (1366x768), my VS2010 can only display 21 lines in code editor. There are too many tool bars occupied upper and bottom part (see below screenshot). When writing codes, it's OK to use fullscreen mode. However, when reading codes, I need some of the toolbar like the bookmark bar, open file tab. Is there any suggestion to increase the viewing area?
Create a single custom toolbar with just the commands you really use in it. Remove the other toolbars. Close tool windows docked at the bottom.
There is an addon that can even remove the menu bar – you'll need to learn keyboard shortcuts (this is a good idea anyway: moving a hand to/from the mouse is much slower).
Increase secreen resolution
Use a different font such as Terminal or Consolas. I guess you must be already using Consolas, try Terminal.
Decrease the font size.
Turn monitor by 90 degree, so it is higher not wider.
Besides that - get a decent monitor. 14" is barely legal acording to some european laws for office use. Programmers tyically get a lot bigger.
Customize your toolbars and get rid of the buttons you don't use. You'll probably be able to fit everything on one row after that.
For example, I don't think I have used the toolbar buttons for cut/copy/paste, using the keyboard instead, so those were the first buttons I removed.
On the right side of each toolbar, there is a button with an arrow, click on that and you should see "customize this toolbar" in the drop-down menu.
Well, if you are having an older notebook, you might not able to change your display, increase your screen resolution or turn the monitor by 90 degrees, like the others suggested. Here are my suggestions for when this is the case:
Place your toolbars left or right instead at the top or bottom
close output window
use fullscreen mode and learn keyboard shortcuts for bookmarks and file menu functions, so you can work without the specfic toolbars
I use Full Screen mode (ALT+SHIFT+ENTER to toggle) when doing the actual editing, with only the solution explorer open on the right hand side.

Features in VB6 stop working on one of my multiple monitors

I have 3 monitors with the center monitor being the primary one. When I start VB6 everything works fine on the center and right monitor, but if I maximize the window on the left monitor my scroll wheel (which uses the VB6 mouse wheel fix) and Ctrl+F for the Find window stop working and continue to not work until I drag the window so most of it is on the center monitor. I have not had any issues with any other programs. Any fix for this?
I haven't personally seen the issues you have with a specific monitor not working, but for me (and my Logitech mouse), I have tried the VB6 mouse wheel fix you mentioned and it didn't work.
Instead, I had to use Wheeler. Check out the link for the full description, but the bottom line is it's the only thing that helps me use the mousewheel in the VB6 IDE on any monitor.

The "Default Zoom Level" Mouse Button

Many mice and keyboards have "zoom" buttons on them. These almost always generate Ctrl+Mouse Wheel messages to the applications, so they are easily accounted for by us programmers.
But my current Logitech mouse has an additional feature. The zoom wheel indeed sends Ctrl+Mouse Wheel messages when scrolled (or, actually, tilted), but when I depress the zoom wheel, most programs restore the zoom level to the default, i.e. 100 %. What kind of message does the mouse send to the application in this case? I cannot find a suitable virtual key code for it.
I should probably say that I have tried to capture this event. In my Delphi application, I wrote handlers for the KeyDown, MouseDown, and MouseWheel events, but non of them are triggered by this mysterious button.
Applications that support this button:
Google Chrome 5.0.375.127
Microsoft Word 2010
Applications that seem not to support this button:
Microsoft WordPad in Windows 7
Microsoft Paint in Windows 7
There is no dedicated shortcut key-stroke or Windows message. Odds are pretty good that the mouse helper has specific awareness of the process that has the focus. And generates the specific command that this program needs to reset the zoom, possibly a WM_COMMAND message. Use a tool like Microsoft's Spy++ to see what messages are generated, if any.
I have a Logitech M570 and downloaded 'set point'.
Not all mice / trackballs have this feature, dead giveaway is having a 'forward / back' button on your mouse or trackball. If you can get 'set point', there are programmable button / wheel options.
find your mouse or trackball on their product page, then, > support > (your mouse), > downloads
If your device can use 'set point', see download button window on the left, insure your Windows version.
Select 'set point'
at the bottom of the window, hit download, go through wizard steps. Download may be fast or take a while.
If it looks like it successfully downloaded, > control panel > mouse. You will see 'mouse properties', look for set point tab.
Try programming 'ctrl' on your 'depress' mouse wheel or 'tilt' button.
I'm a writer, I love my M570 wireless trackball!

VS2010 almost always zooms text on scroll

You know the neat text zoom feature in VS2010 where you hold down Ctrl and then use your scroll wheel? Well, this seems to happen by default (and without ever pressing Ctrl) to nearly every file I open.
Usually I open a file and have to scroll to some lower point, but instead it starts zooming the text! I have found that by tapping the Ctrl key VS then realizes that it should scroll instead of zoom, but it's still very annoying.
Any ideas?
CTR+Shift worked for me.
(Works for Microsoft Office as well)
I believe they consider this to be a feature, and I haven't found a way to turn it off. I think it only happens if you are holding the control key while trying to use the mouse wheel, but I've found it gets locked in that mode sometimes. Personally I think this feature is anoying as &^%% and I wish they would take it out.
Check your Accessibility settings, you might have "locked" it down my accident
Under Windows 7 they are here:
Control Panel\Ease of Access\Ease of Access Center

Resources