What are the top 10 keyboard shortcuts you can use when coding in Unity and Visual Studio? Note: I am using Visual Studio 2017 in this video. Let's take a look at the full list of keyboard shorts you can use in Visual Studio to make your coding faster and more efficient.
#1: Use CTRL+M+O to quickly fold all methods. You can use CTRL+M+P to unfold all the methods.
#2: Use CTRL+M+M to fold the selected area. This folds/unfolds whatever you have selected (or where your curser is) so be careful!
#3: Use CTRL+C+V to quickly duplicate the current line. Handy for when you need to create several similar variables or lines of code.
#4: Is your code looking a little strange? Highlight an area and press CTRL+K+F to format the current selection.
#5: Use CTRL+K+S to place highlighted code in a snippet. A snippet can be something like a #region, an if statement or a loop.
#6: Use ALT+SHIFT+ENTER to enter fullscreen mode. Handy to keep yourself on focus.
#7: Use CTRL+K+C to quickly comment selected code. Use CTRL+K+U to uncomment that same code.
#8 - This one is a little more involved. Press CTRL+K+K to bookmark a line of code. Then, use CTRL+K+N to move to the next bookmarked area. You can also use CTRL+K+W to see all of your bookmarked code regions in a window.
#9 - Use CTRL+ ] (that's control, plus the single left facing square bracket) to find the missing / matching bracket in your code.
#10 - Use F12 to go to the selected code's definition. Press SHIFT+F12 to view all code references.
I hope this handy list of the top 10 keyboard shorts in Unity and Visual Studio will be a handy reference!
Watch video Top 10 Keyboard Shortcuts in Unity and Visual Studio online without registration, duration hours minute second in high quality. This video was added by user Wild Cockatiel Games 30 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,25 once and liked it 3 people.