title
6 Visual Studio Tips to Increase Your Productivity | Mosh

description
Get the COMPLETE COURSE: http://bit.ly/2IEk6Lo My blog http://www.programmingwithmosh.com/ Facebook https://www.facebook.com/programmingw... Twitter https://twitter.com/moshhamedani

detail
{'title': '6 Visual Studio Tips to Increase Your Productivity | Mosh', 'heatmap': [{'end': 731.139, 'start': 698.848, 'weight': 0.905}, {'end': 872.325, 'start': 855.86, 'weight': 0.738}], 'summary': 'Learn productivity tips for visual studio, including utilizing bookmarks for code referencing, employing code snippets for faster coding, and leveraging time-saving keyboard shortcuts and code collapsing for improved efficiency.', 'chapters': [{'end': 102.962, 'segs': [{'end': 35.179, 'src': 'embed', 'start': 8.048, 'weight': 0, 'content': [{'end': 13.651, 'text': 'Bookmarks is one of the greatest features of Visual Studio that is unfortunately hardly ever used.', 'start': 8.048, 'duration': 5.603}, {'end': 21.034, 'text': 'Basically, you put bookmarks in various parts of the code to remind you that you need to get back there and do something.', 'start': 14.411, 'duration': 6.623}, {'end': 27.556, 'text': "This is often very useful when you're focusing on a task, but you see a problem somewhere else in the code.", 'start': 22.014, 'duration': 5.542}, {'end': 31.058, 'text': "You don't want to get distracted from the original task at hand.", 'start': 28.317, 'duration': 2.741}, {'end': 35.179, 'text': 'So you just leave a bookmark there and get back to your original task.', 'start': 31.818, 'duration': 3.361}], 'summary': "Visual studio's bookmarks feature is underutilized, used for marking code areas for future attention.", 'duration': 27.131, 'max_score': 8.048, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg8048.jpg'}, {'end': 90.254, 'src': 'embed', 'start': 60.319, 'weight': 1, 'content': [{'end': 61.58, 'text': 'This represents a bookmark.', 'start': 60.319, 'duration': 1.261}, {'end': 70.043, 'text': 'To see all your bookmarks, press Ctrl and W, as in short for window, and then B, as in short for bookmark.', 'start': 63.08, 'duration': 6.963}, {'end': 75.246, 'text': 'Note that the bookmark I just created is listed here.', 'start': 72.665, 'duration': 2.581}, {'end': 81.369, 'text': 'You can double-click it and change its name to something more meaningful, like requires refactoring.', 'start': 76.346, 'duration': 5.023}, {'end': 83.65, 'text': "I know what you're thinking.", 'start': 82.729, 'duration': 0.921}, {'end': 90.254, 'text': "You're probably saying, Mosh, didn't you advise me not to use the mouse while programming? Yes, I did say that.", 'start': 83.83, 'duration': 6.424}], 'summary': 'Mosh demonstrates creating and managing a bookmark in a code editor.', 'duration': 29.935, 'max_score': 60.319, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg60319.jpg'}], 'start': 8.048, 'title': 'Visual studio bookmarks', 'summary': 'Discusses the underused feature of bookmarks in visual studio, enabling users to mark specific parts of code for future reference and return, thus improving productivity and focus during coding tasks.', 'chapters': [{'end': 102.962, 'start': 8.048, 'title': 'Visual studio bookmarks', 'summary': 'Discusses the underused feature of bookmarks in visual studio, allowing users to mark specific parts of the code for future reference and return, improving productivity and focus during coding tasks.', 'duration': 94.914, 'highlights': ['You can leave bookmarks in various parts of the code to remind you to return and do something, improving focus and productivity.', "To see all your bookmarks, press Ctrl and W, then B, and you can rename bookmarks to something more meaningful, like 'requires refactoring'."]}], 'duration': 94.914, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg8048.jpg', 'highlights': ['You can leave bookmarks in various parts of the code to remind you to return and do something, improving focus and productivity.', "To see all your bookmarks, press Ctrl and W, then B, and you can rename bookmarks to something more meaningful, like 'requires refactoring'."]}, {'end': 703.35, 'segs': [{'end': 164.502, 'src': 'embed', 'start': 131.982, 'weight': 0, 'content': [{'end': 134.464, 'text': "Here I've got a class called CodeSnippetExamples.", 'start': 131.982, 'duration': 2.482}, {'end': 137.866, 'text': "Let's say we want to create a constructor for this class.", 'start': 135.184, 'duration': 2.682}, {'end': 140.268, 'text': 'Most developers do it this way.', 'start': 138.727, 'duration': 1.541}, {'end': 151.917, 'text': 'Here is a faster way of doing that using a code snippet.', 'start': 149.375, 'duration': 2.542}, {'end': 156.199, 'text': 'Did you see how faster it is?', 'start': 154.858, 'duration': 1.341}, {'end': 158.119, 'text': 'So how does this work?', 'start': 157.199, 'duration': 0.92}, {'end': 164.502, 'text': 'There are certain reserved keywords that you can use to automatically insert a ready-made code snippet into your code.', 'start': 158.68, 'duration': 5.822}], 'summary': 'Using code snippets can speed up coding by automatically inserting ready-made code, making the process faster and more efficient.', 'duration': 32.52, 'max_score': 131.982, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg131982.jpg'}, {'end': 229.986, 'src': 'embed', 'start': 201.844, 'weight': 4, 'content': [{'end': 204.026, 'text': 'You can do this faster using a code snippet.', 'start': 201.844, 'duration': 2.182}, {'end': 206.789, 'text': 'Just type prop and then press the tab.', 'start': 204.487, 'duration': 2.302}, {'end': 211.84, 'text': 'Note that the type is highlighted.', 'start': 210.279, 'duration': 1.561}, {'end': 215.721, 'text': "It's ready for you to specify the data type of this property.", 'start': 212.6, 'duration': 3.121}, {'end': 219.122, 'text': 'We type in a string and then press the tab again.', 'start': 216.501, 'duration': 2.621}, {'end': 222.324, 'text': 'Now the focus is on the name of the property.', 'start': 220.143, 'duration': 2.181}, {'end': 223.524, 'text': "Let's give it a name.", 'start': 222.784, 'duration': 0.74}, {'end': 229.986, 'text': 'As you see, some code snippets require parameters.', 'start': 227.305, 'duration': 2.681}], 'summary': 'Using code snippet speeds up coding with highlighted type and parameters.', 'duration': 28.142, 'max_score': 201.844, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg201844.jpg'}, {'end': 505.622, 'src': 'embed', 'start': 471.643, 'weight': 1, 'content': [{'end': 472.684, 'text': "That's why they are grayed out.", 'start': 471.643, 'duration': 1.041}, {'end': 475.846, 'text': 'Also, the code is not formatted properly.', 'start': 473.725, 'duration': 2.121}, {'end': 483.151, 'text': 'I can fix all of these issues with only one shortcut, Ctrl and S, which is for saving the file.', 'start': 476.867, 'duration': 6.284}, {'end': 490.078, 'text': 'See what happened? All those unused namespaces are removed and my code is perfectly formatted.', 'start': 484.417, 'duration': 5.661}, {'end': 498.02, 'text': "So how did this happen? This is because I've installed an extension to Visual Studio that is called Productivity Power Tools.", 'start': 490.979, 'duration': 7.041}, {'end': 505.622, 'text': 'To get Productivity Power Tools, open up your browser and search for Productivity Power Tools in Google.', 'start': 499.12, 'duration': 6.502}], 'summary': 'Using productivity power tools in visual studio can fix code issues with ctrl+s shortcut', 'duration': 33.979, 'max_score': 471.643, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg471643.jpg'}, {'end': 677.421, 'src': 'embed', 'start': 626.017, 'weight': 2, 'content': [{'end': 629.979, 'text': 'Or Ctrl, Shift and F6 to go to the previous tab.', 'start': 626.017, 'duration': 3.962}, {'end': 635.203, 'text': "Isn't that great? It's much easier and faster than using the mouse.", 'start': 631.721, 'duration': 3.482}, {'end': 638.235, 'text': "Now let's look at some ways to close tabs.", 'start': 636.434, 'duration': 1.801}, {'end': 642.357, 'text': 'If you want to close the current tab, press Ctrl and F4.', 'start': 638.915, 'duration': 3.442}, {'end': 644.057, 'text': "It's gone.", 'start': 643.657, 'duration': 0.4}, {'end': 651.04, 'text': "See? Let me share another technique with you that's going to increase your productivity significantly.", 'start': 644.678, 'duration': 6.362}, {'end': 655.702, 'text': 'When I work, I always focus on only one task at a time.', 'start': 652.061, 'duration': 3.641}, {'end': 661.145, 'text': 'Each task is a small piece of work that I can finish within 40 minutes or less.', 'start': 656.623, 'duration': 4.522}, {'end': 666.995, 'text': 'That usually requires very few files or tabs to have open in Visual Studio.', 'start': 662.912, 'duration': 4.083}, {'end': 669.416, 'text': 'There are a couple of great benefits to this.', 'start': 667.835, 'duration': 1.581}, {'end': 673.539, 'text': 'First, it helps you get focus by reducing distractions.', 'start': 670.117, 'duration': 3.422}, {'end': 677.421, 'text': 'You should only have the files open that you really need to work on.', 'start': 674.259, 'duration': 3.162}], 'summary': 'Use keyboard shortcuts to navigate and close tabs for increased productivity. focus on one task at a time for better efficiency.', 'duration': 51.404, 'max_score': 626.017, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg626017.jpg'}], 'start': 104.202, 'title': 'Visual studio productivity', 'summary': 'Discusses visual studio code snippets for faster coding, covering examples and time-saving comparisons. it also highlights productivity tips such as code formatting, tab management, and the benefits of focusing on one task at a time.', 'chapters': [{'end': 397.73, 'start': 104.202, 'title': 'Visual studio code snippets', 'summary': 'Explains how visual studio code snippets can significantly speed up coding by demonstrating the usage of various code snippets, such as creating constructors, properties, methods, and loops, with examples and time-saving comparisons.', 'duration': 293.528, 'highlights': ['Visual Studio code snippets offer a faster way of creating constructors, properties, methods, and loops, significantly speeding up coding processes.', "Using the 'prop' code snippet, the data type is automatically highlighted, ready for the user to specify, showcasing a time-saving comparison with manual property creation.", "The 'foreach' code snippet automatically detects the variable for iteration, eliminating the need to specify the collection or loop variable, saving time and reducing manual input errors.", "The 'ctor' code snippet allows for the automatic insertion of a ready-made constructor code snippet, requiring no manual typing of the class name, demonstrating a significant time-saving feature.", "The 'try' and 'try-f' code snippets enable the quick creation of try-catch and try-finally blocks, providing a convenient and efficient way to handle exceptions during coding."]}, {'end': 703.35, 'start': 412.319, 'title': 'Visual studio productivity tips', 'summary': 'Illustrates various productivity tips for visual studio, including formatting code, using productivity power tools, and efficient tab management, emphasizing the benefits of focusing on one task at a time and minimizing open tabs for increased productivity.', 'duration': 291.031, 'highlights': ['Installing Productivity Power Tools can automatically format code and remove unused namespaces, enhancing coding efficiency. Productivity Power Tools, Format Document on Save, Remove and Sort Usings on Save', 'Efficient tab management involves using keyboard shortcuts such as Ctrl+Tab to cycle through open tabs and closing unnecessary tabs after completing each task for improved focus and productivity. Tab management, Keyboard shortcuts, Closing unnecessary tabs', 'Focusing on one task at a time and having only necessary tabs open reduces distractions and eases tab switching, leading to increased productivity. Task-focused work, Minimizing open tabs, Reduced distractions']}], 'duration': 599.148, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg104202.jpg', 'highlights': ['Visual Studio code snippets offer a faster way of creating constructors, properties, methods, and loops, significantly speeding up coding processes.', 'Installing Productivity Power Tools can automatically format code and remove unused namespaces, enhancing coding efficiency.', 'Efficient tab management involves using keyboard shortcuts such as Ctrl+Tab to cycle through open tabs and closing unnecessary tabs after completing each task for improved focus and productivity.', 'Focusing on one task at a time and having only necessary tabs open reduces distractions and eases tab switching, leading to increased productivity.', "Using the 'prop' code snippet, the data type is automatically highlighted, ready for the user to specify, showcasing a time-saving comparison with manual property creation."]}, {'end': 1077.931, 'segs': [{'end': 731.139, 'src': 'embed', 'start': 704.21, 'weight': 1, 'content': [{'end': 709.832, 'text': 'A fast way to do this is to press Alt, W, and L.', 'start': 704.21, 'duration': 5.622}, {'end': 717.994, 'text': 'Now you may ask, how can I open files for my next task without going to Solution Explorer? The answer is to press Control and Coma.', 'start': 709.832, 'duration': 8.162}, {'end': 722.155, 'text': 'This brings up the Navigate dialog, which is extremely helpful.', 'start': 718.674, 'duration': 3.481}, {'end': 731.139, 'text': 'With this dialogue, you can type the name of a file, a class, or even a method and quickly open that in Visual Studio.', 'start': 724.195, 'duration': 6.944}], 'summary': 'Efficiently navigate and open files in visual studio using keyboard shortcuts.', 'duration': 26.929, 'max_score': 704.21, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg704210.jpg'}, {'end': 872.325, 'src': 'heatmap', 'start': 806.865, 'weight': 3, 'content': [{'end': 810.767, 'text': 'remember that you can do the same with keyboard and save yourself lots of time.', 'start': 806.865, 'duration': 3.902}, {'end': 814.06, 'text': "And here's one more trick for this lecture.", 'start': 812.199, 'duration': 1.861}, {'end': 815.5, 'text': "You're gonna love this.", 'start': 814.54, 'duration': 0.96}, {'end': 818.802, 'text': 'Press Shift, Alt, and Enter.', 'start': 816.281, 'duration': 2.521}, {'end': 822.543, 'text': 'This takes you to the full screen view of the current tab.', 'start': 819.902, 'duration': 2.641}, {'end': 826.625, 'text': "It's much easier to focus on this tab without any distractions.", 'start': 823.244, 'duration': 3.381}, {'end': 830.767, 'text': 'To exit the full screen view, just use the same shortcut.', 'start': 827.846, 'duration': 2.921}, {'end': 833.008, 'text': 'Shift, Alt, and Enter.', 'start': 831.247, 'duration': 1.761}, {'end': 844.455, 'text': "Sometimes, when you are dealing with long blocks of code, it's better to collapse the blocks you are not interested in,", 'start': 838.812, 'duration': 5.643}, {'end': 846.676, 'text': 'so you can focus on a small part of the code.', 'start': 844.455, 'duration': 2.221}, {'end': 848.657, 'text': 'Take a look at this code.', 'start': 847.616, 'duration': 1.041}, {'end': 852.018, 'text': "Let's say we want to work on method 1.", 'start': 849.197, 'duration': 2.821}, {'end': 855.1, 'text': 'As you see, method 2 is a long method and is distracting.', 'start': 852.018, 'duration': 3.082}, {'end': 861.623, 'text': 'We can put our cursor anywhere in the method or on the declaration line and press Ctrl and M twice.', 'start': 855.86, 'duration': 5.763}, {'end': 866.784, 'text': "See what happened? It's much easier to focus on method 1 now.", 'start': 863.143, 'duration': 3.641}, {'end': 872.325, 'text': 'Later, if you want to expand method 2, you can use the same shortcut to expand it.', 'start': 867.944, 'duration': 4.381}], 'summary': 'Save time with keyboard shortcuts, focus on code with full screen and collapse blocks efficiently.', 'duration': 54.758, 'max_score': 806.865, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg806865.jpg'}, {'end': 1077.931, 'src': 'embed', 'start': 1051.895, 'weight': 0, 'content': [{'end': 1054.116, 'text': 'This is the camel humps that I told you earlier.', 'start': 1051.895, 'duration': 2.221}, {'end': 1059.64, 'text': 'Then ctrl and space for resharper to suggest the name.', 'start': 1055.577, 'duration': 4.063}, {'end': 1067.986, 'text': 'And now alt and enter to activate the refactoring commands and select the first one.', 'start': 1061.782, 'duration': 6.204}, {'end': 1075.808, 'text': "When you do this a few times, you're going to get really fast at it and you will do it without even thinking about it.", 'start': 1070.56, 'duration': 5.248}, {'end': 1077.931, 'text': 'Let me show you how I do this.', 'start': 1076.689, 'duration': 1.242}], 'summary': 'Learn to use shortcuts for faster coding. practice leads to speed and automation.', 'duration': 26.036, 'max_score': 1051.895, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg1051895.jpg'}], 'start': 704.21, 'title': 'Visual studio efficiency', 'summary': 'Discusses time-saving keyboard shortcuts in visual studio, such as alt+w+l, control+coma, and shift+alt+enter, saving time by avoiding the use of the mouse and solution explorer. it also explains the benefits of code collapsing for focusing on specific code blocks and demonstrates how resharper provides efficient code refactoring suggestions.', 'chapters': [{'end': 833.008, 'start': 704.21, 'title': 'Visual studio keyboard shortcuts', 'summary': 'Discusses time-saving keyboard shortcuts in visual studio, such as using alt+w+l to open files, control+coma to bring up the navigate dialog, and shift+alt+enter to enter full screen view, ultimately saving time by avoiding the use of the mouse and solution explorer.', 'duration': 128.798, 'highlights': ['Using Alt+W+L allows quick file opening in Visual Studio. Pressing Alt, W, and L together opens files quickly, saving time and avoiding the need to use Solution Explorer.', 'Control+Coma brings up the Navigate dialog for quick access to files, classes, and methods. Pressing Control and Coma together brings up the Navigate dialog, enabling quick access to files, classes, and methods, ultimately saving time and increasing productivity.', 'Shift+Alt+Enter enters full screen view of the current tab for better focus. Pressing Shift, Alt, and Enter together takes the user to the full screen view of the current tab, allowing better focus and reducing distractions, ultimately enhancing productivity.']}, {'end': 1077.931, 'start': 838.812, 'title': 'Code collapsing and resharper refactoring', 'summary': 'Explains the benefits of code collapsing for focusing on specific code blocks and demonstrates how resharper provides efficient code refactoring suggestions, including initializing private fields and creating constructors, with the use of keyboard shortcuts and camel humps technique.', 'duration': 239.119, 'highlights': ['ReSharper provides efficient code refactoring suggestions, including initializing private fields and creating constructors, with the use of keyboard shortcuts and camel humps technique. ReSharper suggests three ways to improve code: initializing private fields from the constructor, removing unused fields, or commenting out. It provides a faster alternative to manually writing code and utilizes keyboard shortcuts and camel humps technique for efficient coding.', 'Demonstrates the benefits of code collapsing for focusing on specific code blocks. Code collapsing allows focusing on a small part of the code, making it easier to work on specific methods or classes within a larger codebase.', 'Explains the use of keyboard shortcuts and camel humps technique for efficient coding with ReSharper. The chapter emphasizes the use of keyboard shortcuts, such as Alt + Enter, and camel humps technique for fast and efficient code refactoring with ReSharper.']}], 'duration': 373.721, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JhxC-K-Eehg/pics/JhxC-K-Eehg704210.jpg', 'highlights': ['ReSharper provides efficient code refactoring suggestions, including initializing private fields and creating constructors, with the use of keyboard shortcuts and camel humps technique.', 'Using Alt+W+L allows quick file opening in Visual Studio. Pressing Alt, W, and L together opens files quickly, saving time and avoiding the need to use Solution Explorer.', 'Control+Coma brings up the Navigate dialog for quick access to files, classes, and methods. Pressing Control and Coma together brings up the Navigate dialog, enabling quick access to files, classes, and methods, ultimately saving time and increasing productivity.', 'Shift+Alt+Enter enters full screen view of the current tab for better focus. Pressing Shift, Alt, and Enter together takes the user to the full screen view of the current tab, allowing better focus and reducing distractions, ultimately enhancing productivity.', 'Demonstrates the benefits of code collapsing for focusing on specific code blocks. Code collapsing allows focusing on a small part of the code, making it easier to work on specific methods or classes within a larger codebase.', 'Explains the use of keyboard shortcuts and camel humps technique for efficient coding with ReSharper. The chapter emphasizes the use of keyboard shortcuts, such as Alt + Enter, and camel humps technique for fast and efficient code refactoring with ReSharper.']}], 'highlights': ['Visual Studio code snippets offer a faster way of creating constructors, properties, methods, and loops, significantly speeding up coding processes.', "Using the 'prop' code snippet, the data type is automatically highlighted, ready for the user to specify, showcasing a time-saving comparison with manual property creation.", 'Installing Productivity Power Tools can automatically format code and remove unused namespaces, enhancing coding efficiency.', 'Efficient tab management involves using keyboard shortcuts such as Ctrl+Tab to cycle through open tabs and closing unnecessary tabs after completing each task for improved focus and productivity.', 'Focusing on one task at a time and having only necessary tabs open reduces distractions and eases tab switching, leading to increased productivity.', 'ReSharper provides efficient code refactoring suggestions, including initializing private fields and creating constructors, with the use of keyboard shortcuts and camel humps technique.', 'Using Alt+W+L allows quick file opening in Visual Studio. Pressing Alt, W, and L together opens files quickly, saving time and avoiding the need to use Solution Explorer.', 'Control+Coma brings up the Navigate dialog for quick access to files, classes, and methods. Pressing Control and Coma together brings up the Navigate dialog, enabling quick access to files, classes, and methods, ultimately saving time and increasing productivity.', 'Shift+Alt+Enter enters full screen view of the current tab for better focus. Pressing Shift, Alt, and Enter together takes the user to the full screen view of the current tab, allowing better focus and reducing distractions, ultimately enhancing productivity.', 'Demonstrates the benefits of code collapsing for focusing on specific code blocks. Code collapsing allows focusing on a small part of the code, making it easier to work on specific methods or classes within a larger codebase.']}