Auto-convert tab to 4 spaces in TextWrangler?
Go to “Preferences” -> “Editor Defaults” -> “Auto-expand tabs,” and then set tabs to 4 spaces. Then restart TextWrangler for changes to take place.
Go to “Preferences” -> “Editor Defaults” -> “Auto-expand tabs,” and then set tabs to 4 spaces. Then restart TextWrangler for changes to take place.
I believe git config –global core.pager ‘less -x1,5’ References: Original: (No longer valid) git-scm chp7-1 Newer: git-config#git-config-corepager Customizing Git
If you want to extract the files to the respective folder you can try this find . -name “*.zip” | while read filename; do unzip -o -d “`dirname “$filename”`” “$filename”; done; A multi-processed version for systems that can handle high I/O: find . -name “*.zip” | xargs -P 5 -I fileName sh -c ‘unzip -o … Read more
I use this on my macbook: ” configure expanding of tabs for various file types au BufRead,BufNewFile *.py set expandtab au BufRead,BufNewFile *.c set expandtab au BufRead,BufNewFile *.h set expandtab au BufRead,BufNewFile Makefile* set noexpandtab ” ——————————————————————————– ” configure editor with tabs and nice stuff… ” ——————————————————————————– set expandtab ” enter spaces when tab is … Read more
This should do it: for file in *; do mv “$file” `echo $file | tr ‘ ‘ ‘_’` ; done
This is a syntax oddity/requirement of make, it has nothing to do with Mac OS X. Unfortunately, there’s nothing you can do about it if you are going to use make. Edit: GNU Make now supports a custom recipe prefix. See this answer. You are not the first one to dislike this aspect of make. … Read more
Unfortunately, you can only turn on all invisible (whitespace) characters at the same time. I suggest you file an enhancement request but I doubt they will pick it up. The text component in Eclipse is very complicated as it is and they are not keen on making them even worse. [UPDATE] This has been fixed … Read more
Using Vim to expand all leading spaces (wider than ‘tabstop’), you were right to use retab but first ensure ‘expandtab’ is reset (:verbose set ts? et? is your friend). retab takes a range, so I usually specify % to mean “the whole file”. :set tabstop=2 ” To match the sample file :set noexpandtab ” Use … Read more
There are 3 options in .vscode/settings.json: // The number of spaces a tab is equal to. “editor.tabSize”: 4, // Insert spaces when pressing Tab. “editor.insertSpaces”: true, // When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents. “editor.detectIndentation”: true editor.detectIndentation detects it from your file, you have to disable it. … Read more
On the bottom right-hand corner of your Sublime Text window, you’ll see an indentation indicator that looks a lot like this: Clicking it will open a menu with options to adjust your indentation preferences, and more importantly, Convert Indentation to Tabs/Spaces. The same menu is listed under View -> Indentation.