Convert tabs to spaces in Notepad++

To convert existing tabs to spaces, press Edit->Blank Operations->TAB to Space. If in the future you want to enter spaces instead of tab when you press tab key: Go to Settings->Preferences…->Language (since version 7.1) or Settings->Preferences…->Tab Settings (previous versions) Check Replace by space (Optional) You can set the number of spaces to use in place … Read more

Can git automatically switch between spaces and tabs?

Here is the complete solution: In your repository, add a file .git/info/attributes which contains: *.py filter=tabspace Linux/Unix Now run the commands: git config –global filter.tabspace.smudge ‘unexpand –tabs=4 –first-only’ git config –global filter.tabspace.clean ‘expand –tabs=4 –initial’ OS X First install coreutils with brew: brew install coreutils Now run the commands: git config –global filter.tabspace.smudge ‘gunexpand –tabs=4 … Read more