Make VSCode Diff Editor ignore empty line addition/deletions? - visual-studio-code

I want VSCode to ignore empty lines added/removed from showing up in the diff editor.
I can trigger ignore trailing/leading whitespaces by a toggle on the editor, but it does not seem to work on lines.
Current Diff Editor:

Related

VSCode inline diff peek view doesn't show whitespace difference

When I change the indentation, Diff Decorations Gutter shows that this line is modified, and open changes with previous revision shows the whitespace difference.
However, when I click the decoration gutter, there is no diff in peek view. How to show the whitespace diff in peek view?
VSCode version: 1.69.2
My settings:
SCM: Diff Decorations Ignore Trim Whitespace - false
Diff Editor: Ignore Trim Whitespace - false
Decorations Gutter & inline diff peek view
open changes with previous revision

Insert "real" spaces when tab in visual studio code

When I hit tab in visual studio code, the code gets indented with what seems to be "fake" spaces. If I hit tab on a new line without typing anything on the previously indented line, the spaces on the previous line seem to disappear. Is this fixable?
It sounds like the unnecssary (because there is no text on that previous line) is being trimmed automatically. To stop that disable the setting:
Editor: Trim Auto Whitespace
I think that'll result in what you want.

In JSX does not create new line between tags with right indentation after heating enter

In .js or .jsx I have strange behaviour. When I have cursor between tags and press enter the vscode does not create empty line between tags and put cursor back to empty line with right indentation. It moves tag to new line. Then I have to create manually empty line between tags and indentation.
Actually is does behave as it should when tag does not have any attributes. But when ever I pass any attribute to tag it start to behave as I mentioned above. Have to mention that in .html files it behaves as expected even with attributes in tags.
I have tried to disable all extensions, install insiders versions but getting the same behaviour.

Visual Studio Code setting delete empty line

How can I delete red box empty line? When scrollbar touch bottom, empty line will appear, I want to delete these empty line.
Those are technically not lines (see they don't have line number), but a generated visual space below the last line of your file.
You can turn off this feature by adding the following to your preferences (File > Preferences Settings):
"editor.scrollBeyondLastLine": false,
By doing this, the last line of your file will be at the bottom of the editor pane when you scroll down to the maximum.

Convert Automatically Spaces to Tabs in Visual Studio Code

I have a file in Visual Studio Code in which I use only tabs for indentation. When I copy the contents of that file somewhere else and edit them, then when I paste them back all tabs are gone and spaces have taken their places.
How can I prevent the use of spaces for indentation and automatically spaces will be converted to tabs?
Also I have changed the preferences:
"editor.insertSpaces": false,
"editor.detectIndentation": false,
Unfortunately you can't (yet). I think it would be nice to get spaces/tabs converted upon file opening - like some editors do. You can quickly convert spaces by tabs by selecting the number of indentation spaces, pressing cmd+F2 in mac or ctrl-F2 in linux/windows (to find and select all occurrences of that amount of spaces), and then pressing tab key (only once). You can also give Untabfy (or Whitespacer) a try.