Comment Multiple Lines at Once (Visual Studio Programming Tricks)

Published: 08 April 2020
on channel: Jan Kiepski
8,422
85

My new game is now out on Steam: https://store.steampowered.com/app/12...

○ Our Website ► https://www.kiepska.pl/
○ Steam Games ► https://store.steampowered.com/dev/ki...

Hey, welcome to Jan Kiepski: a channel about games!

I admit that this programming tip is something you probably won't use very often, but there was one an occasion in my life when I wanted to use somebody's code and it had such comments all over the place. I had to uncomment all the lines and didn't want to do it manually, so I found this solution in Visual Studio. :D

Otherwise, it may be very helpful to be able to comment multiple lines at once to disable some part of your code so that you can quickly debug some minor issue with the help of just 2 simple shortcuts, instead of putting "//", "/*" and "*/" signs, which just seem like a waste of time.

It works exceptionally well in situations when the lines are not listed one by one, but are instead located in different parts of your file.

Whether you're an indie game developer yourself or you're interested in games made with Unity for some other reason – I'm looking forward to sharing many more entertaining videos about indie games with you! Make sure to subscribe so you don't miss them. ;)


On this page of the site you can watch the video online Comment Multiple Lines at Once (Visual Studio Programming Tricks) with a duration of hours minute second in good quality, which was uploaded by the user Jan Kiepski 08 April 2020, share the link with friends and acquaintances, this video has already been watched 8,422 times on youtube and it was liked by 85 viewers. Enjoy your viewing!