Sweet Trick for Beginners

This is something I learned at school from my professor which is so awesome I just had to share it with people. So if you are using Visual Studio and find it tedious to indent tons of lines or change multiple lines of code - to the same thing - that could run into the hundreds, then LOOK NO FURTHER! Press shift+alt and use arrow keys. Thank me later!

1
2
3
4
  shift+alt
  press up or down arrow key
  ?????
  Profit!
Neat.

Also... for indenting, you can just highlight multiple lines normally.. then press Tab to add indentation or Shift+Tab to reduce it.


Although...
or change multiple lines of code - to the same thing


If you find yourself doing this, "you're doing it wrong". Code should never be that tedious. This is a sign that your code is poorly written.
closed account (jwkNwA7f)
Cool! Thanks for sharing it with us!

I do agree with Disch:
If you find yourself doing this, "you're doing it wrong". Code should never be that tedious. This is a sign that your code is poorly written.
Last edited on
Topic archived. No new replies allowed.