Tip of today: enable source map scrollbar in Visual Studio

Last week I was at the Microsoft Tech Days 2015 in The Hague. One of the sessions was about Visual Studio Productivity. The presenter showed us a ancient feature that is already available since the early: convert your VS scrollbar into a sourcemap-scrollbar. This helps you navigating a long source files, since we humans are picture oriented:


You can enable this by right-clicking the scrollbar itself and choose Scroll Bar Options from the menu. In the dialog check the ‘Use map mode for virtual scrollbar’-setting. Et voila!

Photo 2 Folders

Sometimes you’re just happy with some small piece of software that saves you a lot of time. At this rainy sunday afternoon I wanted to sort out my digital photo collection, including my mobile pictures. Where to start with 300+ pictures in one folder? Luckily photos have metadata in them with date, time and sometimes even GPS locations. The utility Photo2Folders utilizes this information to automatically sort those photos and move them to a nested folder structure.



The event name is not in the metadata, so these have to be specified during the sorting process.

Windows 8 cleanup tips

Most of my friends have a single SSD in their computer as the primary boot disk. SDD is still a bit expensive, so probably the size is often limited (128gb). Since Windows is installed on the SSD to utilize the amazing speed for booting and working, it can take more space again and again. And oops, almost no space left on C!

Some general guidelines to prevent this situation:

1. Only store important system data on the SSD (your mp3 can best be stored on other available drives)

2. Install applications that don’t the extra speed on your old magnetic drive. Programs stored their run a bit slower, so only use it for less frequently used apps.

3. Store cloud service software on a different drive.

4. Uninstall unused programs and features.

5. Change the default download location of your browser to a non-system drive (d:\downloads\). In Google Chrome you can find this under Settings –> Advanced Settings

These guidelines are for experienced users ‘common sense’. I have also some tricks that be be used to save space and keep my SSD drive clean. Most tips require command-line actions. So, here it goes:

Clean you drive with the built-in Clean Manager. I created a small batch file (shutdown_and_clean.bat) to clean before shutting the PC. Just open notepad and type the following:

@echo off
start /wait c:\windows\system32\cleanmgr /sagerun:1
shutdown -s

Recommendation: place a shortcut to this script on the desktop to quickly shutdown the PC. Special options: ‘Run as Administrator’ + ‘Run minimized’

Remove temporary files from the DVD-burn directory (not part of clean manager). Location is C:\users\<accountname>\appdata\local\microsoft\windows\burn

Search for big files with windows search. Open Windows Explorer (WinKey+E) and type in the search filter (right upper corner) for big ones: size:

Use Windirstat the search for big files that be easily removed.

Use compression for system backup folders (right click on folder, properties, advanced settings and check the compress checkbox) for the following directories:

  • c:\windows\installer
  • c:\windows\logs\ (if available)
  • c:\windows\system32\DriverStore\(if available)
  • c:\windows\system32\logfiles\ (if available)
  • c:\windows\system32\winevt\logs\ (if available)
  • c:\program files(x86)\common files\windowslive\.cache\ (if available)


Cleanup the Windows/sxs directory. Windows stores here all downloaded and installed updates. It’s only used for enabling unstall for Windows updates. Most of the time, this is not necessary. Handle with care, without guarantees: you can remove older files from this directory with the command line, by entering: dism /online /cleanup-image /startcomponentcleanup /resetbase

Disable the Windows hibernate function (losing the c:\hiberfil.sys file). Disable via the command prompt: powercfg /h off. If you like, you can also to keep hibernate enabled, but decreasing the required space. For 50% usage: powercfg /h –size 50