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 of a Tab by changing the Tab … Read more

How do you auto format code in Visual Studio?

To format a selection: Ctrl+K, Ctrl+F To format a document: Ctrl+K, Ctrl+D See the pre-defined keyboard shortcuts. (These two are Edit.FormatSelection and Edit.FormatDocument.) Note for macOS On macOS, use the CMD ⌘ key instead of Ctrl: To format a selection: CMD ⌘+K, CMD ⌘+F To format a document: CMD ⌘+K, CMD ⌘+D

IndentationError: unexpected indent error

While the indentation errors are obvious in the StackOverflow page, they may not be in your editor. You have a mix of different indentation types here, 1, 4 and 8 spaces. You should always use four spaces for indentation, as per PEP8. You should also avoid mixing tabs and spaces. I also recommend that you … Read more

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