4 ms·
I don't understand how people can work with spaces. I had to reformat a colleague's query the other day and it was infuriating because all the tabs had somehow
by gthtjtkt 9y ago
I don't understand how people can work with spaces. I had to reformat a colleague's query the other day and it was infuriating because all the tabs had somehow been converted to spaces. I had to edit it line by line instead of being able to easily shift entire blocks in either direction.
Do Visual Studio and SSMS support the space equivalent of "Select X rows and tab them all at once"? I just tried now and all the code is wiped out, replaced by a single space.
- mcbits 9y agoVisual Studio supports column-based selection using Alt+Shift with up/down arrows or the mouse to select a column, so you can add any number of spaces or any other text on all of the rows at once. I'd assume SSMS is the same, since it's based on VS. But that's still not a good reason to use spaces (especially 2 spaces) and say "FU" to programmers suffering from diplopia.
- kemitche 9y agoMost editors I've used will let you adjust indentation with the tab key in that situation. (The indentation still ends up as spaces, of course) I do this on a daily basis to adjust my indentation in json/yaml files.