Make Vim show ALL white spaces as a character

As others have said, you could use :set list which will, in combination with :set listchars=… display invisible characters. Now, there isn’t an explicit option which you can use to show whitespace, but in listchars, you could set a character to show for everything BUT whitespace. For example, mine looks like this :set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:< so, … Read more

How do I change Eclipse to use spaces instead of tabs?

Java Editor Click Window » Preferences Expand Java » Code Style Click Formatter Click the Edit button Click the Indentation tab Under General Settings, set Tab policy to: Spaces only Click OK ad nauseam to apply the changes. [Note: If necessary save profile with a new name as the default profile cannot be overwritten.] Default … Read more

How do I trim whitespace?

For whitespace on both sides, use str.strip: s = ” \t a string example\t ” s = s.strip() For whitespace on the right side, use str.rstrip: s = s.rstrip() For whitespace on the left side, use str.lstrip: s = s.lstrip() You can provide an argument to strip arbitrary characters to any of these functions, like … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)