As I always forgets this and fresh Visual Studio installations favour tabs over spaces, here is how to get it into sane mode:
- show whitespace: [WayBack] Jeff Widmer’s Blog – How to show white space in Visual Studio
- Menu:
Edit
,Advanced
,View White Space
- Toggle shortcut keys:
- Ctrl R, Ctrl-W
- Ctrl E, S
- Menu:
- force spaces instead of tabs: [WayBack] Visual Studio 2013 Tips & Tricks: Indentation (Tabs and Spaces) | Ed Glogowski, [WayBack] Visual Studio replace tab with 4 spaces? – Stack Overflow
- Menu:
Tools
,Options
,Text Editor
,All Languages
(or a specific language),Tabs
,Insert Spaces
(the internal variable is calledInsertTabs
) - Shortcut keys:
- none, but you can create your own using a macro: Visual Studio 2010 macros to set “Insert spaces” or “Keep tabs” in Tools -> Options -> Text Editor -> C# -> Tabs page.
- Menu:
Related: [WayBack] Whitespace: The Silent Killer
–jeroen
git push -u
was introduced in Git 1.7.0 (2010-02-12). – Chris Johnsen Jun 4 ’11 at 4:16-u
is short for--set-upstream
—for what it does and why it’s needed I wouldn’t mind some explanation, too. :) – Anton Strogonoff Mar 9 ’14 at 6:07push.default
is set toupstream
, this will not do what you think it will do. It will try to push over the existing tracking branch. Use:git push -u origin mynewfeature:mynewfeature
or dogit branch --unset-upstream
first. – void.pointer May 19 ’14 at 18:07