![]() You will usually have to correct indentation yourself (or set up visual studio to auto-indent/format your code every time you save).Īll in all, it's completely unusable. Yes, visual studio gets confused when you try to copy+paste a line with indentation at the end of a line containing whitespace. When adding a line or pasting, instead of indenting it correctly (matching the line before), it does some bizarre thing where it adds multiplies the indent level by the number of blocks. This will work for when you change between tabs and spaces in the bottom right of the editor window. Lines with yellow highlights contain unsaved changes, and green highlights are saved changes from the current session. Otherwise, you can look at the side of the editor window where there will be yellow and green highlights. ![]() If you are using source control, you can see which lines were actually changed by comparing your changes against your unmodified file. When changing the indent mode, it decides to change every line in the file without asking (which means you can no longer see which lines where actually changed) Tools -> Options -> Text Editor -> -> Tabs to set indentation settings for a given file type. ![]() Indentation settings are determined by file type, unless an editorconfig file is present. I have not found a way to set the indent level for a file ![]() editorconfig file could also be overriding your indentation settings that you are expecting. Indentation is only automatically detected if you have adaptive formatting enabled (Tools -> Options -> Text Editor -> Advanced -> Use adaptive formatting). It does not detect the right indentation level for a file I need to use Visual Studio for a thing, but the indentation handling seems to be broken:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |