Posts

Showing posts from September, 2016

Problem deleting directories and files in Windows

I was trying to delete a folder containing some node modules that was extremely deeply nested and kept getting errors to do with the file path being too long when using the standard File Explorer delete tools.  I eventually found a solution at  http://stackoverflow.com/questions/28175200/unable-to-delete-node-modules-folder . Create an empty folder somewhere, e.g. C:\test. Open up a command window and run the command 'robocopy /MIR c:\test <directory to delete>. The directory will now be empty and can itself be deleted. The /MIR switch makes robocopy copy the contents for the source directory (the empty one in this case) to the destination folder and delete any existing directories and folders in it.

Visual Studio keyboard shortcuts

A few handy Visual Studio shortcuts and options: Ctrl + -/+ : Move backwards/forwards through navigation history. Ctrl + Alt + L : Shifts the focus to Solution Explorer. Start typing an items name to navigate to it. Ctrl + ; : Search Solution Explorer for a file. Ctrl + q : Search for menu items. To change vertical scroll bar to map mode: Tools > Options > Text Editor > All languages > Scroll Bars > User map mode for vertical scroll bar. To quickly view a file: Single click it in Solution Explorer or select it with the keyboard. When the focus is in the code editor: Alt + vertical arrow keys : Moves current line up or down. To move several lines, select them then Alt + vertical arrow keys.