Hello Mosh, thank you very much :) You can use ctrl+k+n to navigate to next bookmark and ctrl+shift+k+n to navigate to previous bookmark Use ctrl + m + o to collapse methods and classes
A valid suggestion. He doesn't mean show subtitles or captions but show some little key icons on the screen to help it visually sink in. Some of us are hearing impaired after all! 😄
In 2015 Adding bookmark is done by Ctrl+K; Ctrl+K, fast rename is done by switching to bookmarkview with Ctrl+K; Ctrl+W. Last added bookmark always selected (as for me),then F2. I think TODO comments are more effective. One just types it in the code and that's all.
+FernestHall There are a few factors in learning to concentrate. One plan I discovered which successfully combines these is the Magic Focus Plan (google it if you're interested) without a doubt the best guide i've heard of. look at all the unbelievable information .
Visual Studio Productive Tips Duplicate line: CTRL +D Delete line: CTRL + SHIFT + L Selecting all instances of word: ALT + SHIFT + .(period) and then pressing .(period) repeatedly Vertical Selection: Hold down Alt Key and making the selection with either the mouse or keyboard. To create multiple cursors in arbitrary locations: CTRL + Alt + Click Cut Entire Line: CTRL + X Comment: CTRL + [K, C] Un-Comment: CTRL + [K, U] Add Line Above: CTRL + Enter Below: CTRL + SHIFT + Enter Rename (Anything): CTRL + [R, R] Go To Definition: F12 Find All References: SHIFT + F12 Refactor to Method: CTRL + [R, M] Move Code Up: ALT + UpArrow Down: / ALT + DownArrow Format Document: CTRL + [K, D] Surround with Snippet: CTRL + [K, S] Collapse Class to Definitions: CTRL + [M,M] for collapsing one method and CTRL + [M, O] for all methods Organize Using Statements: CTRL + [R, G] Quick Fix (Add Methods, implement interface, etc): CTRL + . (period) Solution Explorer: CTRL + ALT + L Search to class or file: CTRL + ; Unity Project Explorer: SHIFT + ALT + E Creating Code Snippets: Creating Constructor: type ctor and then hit the tab Creating Properties: type prop and then hit the tab Creating Properties with full set and get snippets: type propfull and then hit the tab Creating try catch block: type try and then hit the tab Creating try finally block: type tryf and then hit the tab Switching between tabs: CTRL + tab Switch to next Tab: CTRL + F6 Switch to previous tab: CTRL + Shift + F6 Closing tab: CTRL + F4 Closing all tabs: ALT + [W,L] ; Opening file without using solution explorer: CTRL + , (comma)
Man looking at ur first vid feels like something special. Cause now u have changed lives of many people including me keep up the good work and keep changing people's lives.
Oh it's Mosh! I did click randomly and did not recognize until I heard the thing about not using the mouse. I took some of your courses on Udemy. You're in the top instructors there amongst the one I took courses there. I belong to those people who find it useful to take advantage of shortcuts in software. One of the first things I do is browse the menu and read them. There are some I cannot seem to find though. One in particular is the one to look up the commands in the program. It makes a search input pop out ans for instance you could search for "toggle comments", "build solution", you name it. I think I found it some day but I forgot. There are also some shortcuts to navigate or edit code I love to use. Ctrl+Shift+L to Delete a line Ctrl+L to cut VIM style. then you can paste the line Ctrl+Shift+V to show clipboard history. Ctrl+D to duplicate a line Alt+↓ or Alt+↑ to move a line or selected lines up or down. You name it. 1. Bookmark feature. 00:01 I didn't know that feature but I manage the problem differently. I take notes. A notebook or on PC most likely Google Docs (because it is online and easy to retrieve from many devices) 2. Code snippets 02:00 I already know most of them. Thank you to complete 3. Format code 06:48 Ctrl+K,F seems to need you to select code. Ctrl+K,D doesn't → Faster IMHO I have Power tools installed but it wasn't configured/set by default. I was looking for a way to sort and reorganise usings. There is a command in the menu but it has no shortcut by default. I tried to assign one and didn't work well. In Eclipse it was Ctrl+Shift+O and I used it all the time. Now it is even simpler. Thanks. 4. Manage tabs 09:29 Ctrl+tab → Learnt in one of your courses. Pretty cool Ctrl+(Shift)+F6 Prev/Next tab didn't know My productivity issue is more like what you say about having millions of tabs opened. And even when I clean them, a few seconds later I'm back to too many tabs. I feel often stressed out because of that. I think videos (of even a complete course on Udemy) would be interesting should you ask me. Alt+W,L → My eyes are burning. My heart is pumping. Clean the mess of tabs out of the workspace! Ctrl+, → Navigate to dialog. Shift+Alt+Enter → I know but I'd love to find a way that would mimic the Ctrl+Shift+M from Eclipse. Basically what it does is maximize the panel that currently has focus. Code ? Full screen but you can still see the menu (and I like it), Solution explorer? You could maximize that too if it had focus. One you did not talk about is with power tools you can double-click to detach of attach back an editor tab. 5. Collapse code blocks 13:54 Ctrl+M,M → Toggle outlining expansion 6. ReSharper 14:53 (mistakenly numbered 7 in the video) The content is outdated. VS has all this now. Taking some of the remarks you did in some courses regarding ReSharper, I see these features are now also included. That said ReSharper still has features I'd love to see in VS such as inline debug watches. I find this very convenient. I also like the inline parameter naming. I believe it will be part of one of the next versions. Who knows: maybe in VS 2021. Best regards.
Do that in a team project with version control, all line of code that you didn't touch may appear to be modified too (depending others vs your auto formatting style). Then, prepare for your supervisor and code reviewer to have you a meeting for justification when they see your mass modification on unrelated code. Or can just highlight the section you modified, and [Ctrl + K], [Ctrl + F]
memo: 1. use bookmarks Ctrl + K, K 2. use code snippets ctor, prop, cw(Console.WriteLine), try, for, foreach, while... 3. format your code select code, then Ctrl + K, F use Productivity Power Tool extention 4. manage tabs with keyboard ctrl + tab/ctrl + shift + tab, ctrl + F4(close tab) ctrl + , search for anything shift + alt + enter(full screen) 5. collapse code blocks ctrl + M, M 6. use ReSharper
Most of the tips are actually code snippets. There's a code snippet editor in VS that let's you create your own (for example, something like foreach, ctr, etc). Although i use Vissual Assist for my code snippets since i need it for c++ as well and the default snippet editor doesn't seem to support C++.
Tip 3 can be done with the following Tip: Just go to end of file and follow these steps: 1 - Remove } 2 - Write } It will automatically indent the code properly. You can use this technique even at class level, function level and at any level which is using {.......}. :)
Hello Am Abel Mboa From Kenya. I really enjoyed your content and you are the reason I even program you made me solve my curiosity in coding after watching your tutorials.
Hi Mosh, thanks for this kind of good video. To edit bookmark without using mouse. You need to select bookmark from bookmark list(CRTL+UU) using arrow keys and press Key F2 to edit. after change press key Enter. that it... thanks
If you need a bookmark, you are doing it right first //todo: you message, no UI and works in any editor! The second tip was useful, video is worth like, thanks!
Hi Mosh the best one, small tipp to reformat the code in such a nice way is go to the end of the script with a shortcut then delete the } and rewrite it again .
cw tab tab --> console.writeline() ctrl + tab --> switch between the classes ctor tab tab --> create a construcot ctrl+k k --> to add a book mark ctrl+w and ctrl+b -->to view the booksmarks prop tab tab --> to create a property propfull tab tab --> to create a property full equals tab tab --> creates Equals and Gethashcode method try tab tab --> creates try and catch block tryf tab tab -->creates try and finally block for tab tab -->creates for loop forr tab tab -->creates for loop in decrement foreach while do tab -> to move one tab right shift tab --> to move one tab left ctrl+k and ctrl+f --> to format the selection ctrl , --> to open navigation search shift ctrl enter --> full screen ctrl m m --> collapse/expand the class/namespace
Last but not least,you can make your own code snippets.For all your custom needs. For example i made a code snipet to make a double for loop to iterate through a 2 dimensional array.
one of the first things i learned is bookmarking :D ctrl+k+k ctrl+k+n ctrl+k+p lets u create and jump to "N" next and "P" previous bookmark :D u need ctrl+up ctrl+down to move lines and of course ctrl+w to select words these 6 commands are the most important imo. then theres ctrl+del to delete a whole line ;) u need to use shift and ctrl when u want to select inline if u know these u can code very fast. learn your keyboard and hotkeys these are your tools. use them like tools.
A bit late, but when you press Ctrl-Tab to Switch between Tabs, you can navigate through the files in the panel pressing the arrow keys, you can access to the error Log too.
Hello Mosh, it's been 5 years to this video and you are rocking on RUclips these days, I have got so inspired that me too wants to start youtube channel now. Can you share your starting days experience with me?
I look for these features in my IDE of choice - navigate cursor position history - go to file without touching the file tree - go to member without scrolling - multi-cursor editing - open cmd/terminal quickly
I don't know them all but you could find them. Unfortunately some of these are involving the mouse though. My contribution: 🔴 Navigate cursor position history My IDE telss Ctrl+. or Ctrl+Shift+. but it doesn't work here. 🟢 Go to file without touching the file tree Isn't it the Ctrl+, showed in the video ? Otherwise try Ctrl+Shift+T or Ctrl+1,R to see recent files (pre-populated list) 🟢 Go to member without scrolling Alt+* 🟢 Multi-cursor editing If it is sequential lines in the same column Shift+Alt+↓ or Shift+Alt+↑ to select more line in the direction respectively to the arrow key. If it is in different part of the code (a few lines or columns away) Click in one of the spots first Then add spots maintaining Ctrl+Alt when clicking 🟢 Open cmd/terminal quickly There are several cmd/Terminals you could open Ctrl+Alt+A Classic Windows Terminal Ctrl+ù Opens PowerShell Terminal. I have a French keyboard. I find this one fishy for US/UK/International keyboards. Maybe it is different. Ctrl+Alt+F to Open the interactive F# command prompt. I don't use that. I'd use the one for C# which has no shortcut by default and Ctrl+Alt+C seems available. Ctrl+Alt+I Immediate Window. I don't know exactly what it does honestly A shortcut for NuGet Package Manager Console would be much more interesting should you ask me.
ctrl k, k to add the bookmark. ctrl k, w to open the bookmarks pane. use the arrows to scroll the bookmarks, and then press F2 on the one you'd like to rename.
Thanks for the tips, those were great! Just a suggestion for all, get the VsVim plugin and learn to navigate using vim keyboard shortcuts, it greatly increased my productivity!
1 Book mark is interesting, I will try to keep that. 2 Snippet you can find some snippet free eidtor and add some more snippet or change the exist snippet to your coding style. I also hope that Mic change the comment to toggle instead of insert and remove separately.
It is actually [Ctrl + K] then [Ctrl + D] or just hold down [Ctrl], then [K], [D]. And in a team project, doing that may result all other line of code you didn't touch appear to be modified too. Code reviewer will be wtf on your massive code changes when they trying to merge or reviewing your code. Then prepare to justify, argue, or get backfire. Safe play is to just highlight only your code section and [Ctrl + K], [Ctrl + F]
very nice video, but you could display the table of contents in the beginning, display the shortcut key when pressing it, and make it 3-4 times shorter by speaking faster and getting rid of all the pauses
Thanks you for this helpful video. I use VS every day and I learn a lot with your video (show the zoom with mouse wheel..good when we work on long part of code)
Hi, nice Tips, Here a solution for your Bookark Mouse Problem: You can rename a Bookmark after u Added it with CTRL + K, K, using CTRL + W, B and press F2
Thank you so much for this useful knowledge. I've watched only two of your videos and I already like your chanel. I think I will watch one of your multiple videos tutorials next.
Great tips, man! Even though I'm sort of reluctant as to watching this kind of videos in the first place, I found your tutorial very useful. Have a sub.
In my Version of VS (2013) You have to press [CTRL + K] and after that [CTRL + W] to get the Bookmark-Window. To delete a bookmark, you have to go to the bookmarked line and press [CTRL + K] twice again and the bookmark will be removed. Maybe this saves someone some minutes of searching. EDIT: Ah, damn! I should start watching videos completely bevore I start writing comments. Sorry at this point.
Hi and thank you for the video. I am not sure if you have a video about this, but one of my questions is how do I prepare for interviews that do not let me use a full featured IDE? I have heard some developers do not believe in doing that because when you do work on a project, you have access to it. But regardless of where you stand on the issue, are there any activities besides practicing with a simple editor that would help you become comfortable enough with a language to just type it up? Thanks.
Does those shortcuts applies to both VB and C#, because I was trying on VB and most does not work?You have a great way of illustrating your subjects, I really enjoyed it. Thank you
some work in vb example tryf with TAB will do a try finally end try example try and ENTER will do a try Catch ex As Exception end try example If and double TAB will do a If True Then End If otherwise within the code, you do CTRL K then CTRL X and there are a lot of code snippets and you'll have some powerfull code snippets available You can then make your own code snippets and add them in there to use later or in other projects
I had noticed you used these tips earlier... however, I hate ctrl+f5 combination... it too far to push them by one hand or it requiers to stretch the finders... even C::B have the one button to debug&run, even ms word have the best combo shift+f12, I ever used, to call the "save".BUT ctrl+F5!!! It drives me mad every time i have to use it!
Excelent tips. Its helpfull. I have a question. Do you know an extension or option that make copy some piece of code into many forms at once? For example, I forgot to write a piece of code in 10 forms and i want to do it without going to each one and copy and paste the same code 10 times.
Have you thought about an abstract class? Also, you could make a public class with some methods you need in the different classes, link it in every class and then use the methods just like that.
How to include sub-directories in Visual Studio? Add the "base folder" to the project (project properties -> Configuration Properties -> C/C++ -> Additional Include Directories, "additional include directories") but there are almost 50+ directories , It is not possible to add each and every folder. any other solution??
Dear Mosh, thank you so much for this tutorial. Can you tell me how your VS has customized SQL SQL Prompt , Team etc . Mine has only File Edit Select View.. Help
F2 to rename bookmark. Basically this key works everywhere as Rename command.
Hello Mosh, thank you very much :)
You can use ctrl+k+n to navigate to next bookmark and ctrl+shift+k+n to navigate to previous bookmark
Use ctrl + m + o to collapse methods and classes
Nice tips! But I think it would be good if you display the shortcut key you are pressing while you're saying it. Thanks.
Jabbar Daomilang
Fernando Goncalves :)
turn on subtitle buddy ;)
A valid suggestion. He doesn't mean show subtitles or captions but show some little key icons on the screen to help it visually sink in. Some of us are hearing impaired after all! 😄
So this is where it started.....
In 2015 Adding bookmark is done by Ctrl+K; Ctrl+K, fast rename is done by switching to bookmarkview with Ctrl+K; Ctrl+W. Last added bookmark always selected (as for me),then F2.
I think TODO comments are more effective. One just types it in the code and that's all.
First video of Mosh 😍😍😍😍😍
I think it would be great, if you provided a list of all the shortcuts and topics in the description or at the end of the video.
+FernestHall There are a few factors in learning to concentrate. One plan I discovered which successfully combines these is the Magic Focus Plan (google it if you're interested) without a doubt the best guide i've heard of. look at all the unbelievable information .
Hi,
did you try this Find Your Focus program? I'm interested to try it.
Visual Studio Productive Tips
Duplicate line: CTRL +D
Delete line: CTRL + SHIFT + L
Selecting all instances of word: ALT + SHIFT + .(period) and then pressing .(period) repeatedly
Vertical Selection: Hold down Alt Key and making the selection with either the mouse or keyboard.
To create multiple cursors in arbitrary locations: CTRL + Alt + Click
Cut Entire Line: CTRL + X
Comment: CTRL + [K, C]
Un-Comment: CTRL + [K, U]
Add Line Above: CTRL + Enter
Below: CTRL + SHIFT + Enter
Rename (Anything): CTRL + [R, R]
Go To Definition: F12
Find All References: SHIFT + F12
Refactor to Method: CTRL + [R, M]
Move Code Up: ALT + UpArrow
Down: / ALT + DownArrow
Format Document: CTRL + [K, D]
Surround with Snippet: CTRL + [K, S]
Collapse Class to Definitions: CTRL + [M,M] for collapsing one method and CTRL + [M, O] for all methods
Organize Using Statements: CTRL + [R, G]
Quick Fix (Add Methods, implement interface, etc): CTRL + . (period)
Solution Explorer: CTRL + ALT + L
Search to class or file: CTRL + ;
Unity Project Explorer: SHIFT + ALT + E
Creating Code Snippets:
Creating Constructor: type ctor and then hit the tab
Creating Properties: type prop and then hit the tab
Creating Properties with full set and get snippets: type propfull and then hit the tab
Creating try catch block: type try and then hit the tab
Creating try finally block: type tryf and then hit the tab
Switching between tabs: CTRL + tab
Switch to next Tab: CTRL + F6
Switch to previous tab: CTRL + Shift + F6
Closing tab: CTRL + F4
Closing all tabs: ALT + [W,L] ;
Opening file without using solution explorer: CTRL + , (comma)
Thanks a lot!
Thanks for the precious time saving shortcuts, can't say the same for the length of this video
Man looking at ur first vid feels like something special. Cause now u have changed lives of many people including me keep up the good work and keep changing people's lives.
Oh it's Mosh!
I did click randomly and did not recognize until I heard the thing about not using the mouse.
I took some of your courses on Udemy. You're in the top instructors there amongst the one I took courses there.
I belong to those people who find it useful to take advantage of shortcuts in software. One of the first things I do is browse the menu and read them.
There are some I cannot seem to find though.
One in particular is the one to look up the commands in the program. It makes a search input pop out ans for instance you could search for "toggle comments", "build solution", you name it. I think I found it some day but I forgot.
There are also some shortcuts to navigate or edit code I love to use.
Ctrl+Shift+L to Delete a line
Ctrl+L to cut VIM style. then you can paste the line
Ctrl+Shift+V to show clipboard history.
Ctrl+D to duplicate a line
Alt+↓ or Alt+↑ to move a line or selected lines up or down.
You name it.
1. Bookmark feature. 00:01
I didn't know that feature but I manage the problem differently.
I take notes. A notebook or on PC most likely Google Docs (because it is online and easy to retrieve from many devices)
2. Code snippets 02:00
I already know most of them. Thank you to complete
3. Format code 06:48
Ctrl+K,F seems to need you to select code.
Ctrl+K,D doesn't → Faster IMHO
I have Power tools installed but it wasn't configured/set by default. I was looking for a way to sort and reorganise usings.
There is a command in the menu but it has no shortcut by default. I tried to assign one and didn't work well.
In Eclipse it was Ctrl+Shift+O and I used it all the time. Now it is even simpler. Thanks.
4. Manage tabs 09:29
Ctrl+tab → Learnt in one of your courses. Pretty cool
Ctrl+(Shift)+F6 Prev/Next tab didn't know
My productivity issue is more like what you say about having millions of tabs opened. And even when I clean them, a few seconds later I'm back to too many tabs. I feel often stressed out because of that.
I think videos (of even a complete course on Udemy) would be interesting should you ask me.
Alt+W,L → My eyes are burning. My heart is pumping. Clean the mess of tabs out of the workspace!
Ctrl+, → Navigate to dialog.
Shift+Alt+Enter → I know but I'd love to find a way that would mimic the Ctrl+Shift+M from Eclipse. Basically what it does is maximize the panel that currently has focus. Code ? Full screen but you can still see the menu (and I like it), Solution explorer? You could maximize that too if it had focus.
One you did not talk about is with power tools you can double-click to detach of attach back an editor tab.
5. Collapse code blocks 13:54
Ctrl+M,M → Toggle outlining expansion
6. ReSharper 14:53 (mistakenly numbered 7 in the video)
The content is outdated. VS has all this now. Taking some of the remarks you did in some courses regarding ReSharper, I see these features are now also included. That said ReSharper still has features I'd love to see in VS such as inline debug watches. I find this very convenient. I also like the inline parameter naming. I believe it will be part of one of the next versions. Who knows: maybe in VS 2021.
Best regards.
Oh my Mosh!!! Snippets... Now I use them every time.
another way I have been using to format files: CTRL + K, D
Do that in a team project with version control, all line of code that you didn't touch may appear to be modified too (depending others vs your auto formatting style). Then, prepare for your supervisor and code reviewer to have you a meeting for justification when they see your mass modification on unrelated code.
Or can just highlight the section you modified, and [Ctrl + K], [Ctrl + F]
memo:
1. use bookmarks
Ctrl + K, K
2. use code snippets
ctor, prop, cw(Console.WriteLine), try, for, foreach, while...
3. format your code
select code, then Ctrl + K, F
use Productivity Power Tool extention
4. manage tabs with keyboard
ctrl + tab/ctrl + shift + tab, ctrl + F4(close tab)
ctrl + , search for anything
shift + alt + enter(full screen)
5. collapse code blocks
ctrl + M, M
6. use ReSharper
Most of the tips are actually code snippets. There's a code snippet editor in VS that let's you create your own (for example, something like foreach, ctr, etc). Although i use Vissual Assist for my code snippets since i need it for c++ as well and the default snippet editor doesn't seem to support C++.
Use F2 to rename the Book mark..
Wanted to type it here but saw your reply.
Tip 3 can be done with the following Tip: Just go to end of file and follow these steps:
1 - Remove }
2 - Write }
It will automatically indent the code properly. You can use this technique even at class level, function level and at any level which is using {.......}. :)
Hello Am Abel Mboa From Kenya.
I really enjoyed your content and you are the reason I even program you made me solve my curiosity in coding after watching your tutorials.
But I have a proposal I have opened up a programming school here in Kenya and would like to use your content in it
Hi Mosh,
thanks for this kind of good video.
To edit bookmark without using mouse.
You need to select bookmark from bookmark list(CRTL+UU) using arrow keys and press Key F2 to edit.
after change press key Enter.
that it...
thanks
I'm using VS for more than 10 years and there are some of the tips in this video that are new to me! Thanks, Mosh!
If you need a bookmark, you are doing it right first //todo: you message, no UI and works in any editor! The second tip was useful, video is worth like, thanks!
Hi Mosh the best one, small tipp to reformat the code in such a nice way is go to the end of the script with a shortcut then delete the } and rewrite it again .
Also you can format code by finding the last closing curly brace in the file, removing it and then re-typing it.
You can right click and dock the bookmarks as a tabbed document and then you can navigate with the arrow keys, hopes that helped :)
using a mouse ? ewwww
cw tab tab --> console.writeline()
ctrl + tab --> switch between the classes
ctor tab tab --> create a construcot
ctrl+k k --> to add a book mark
ctrl+w and ctrl+b -->to view the booksmarks
prop tab tab --> to create a property
propfull tab tab --> to create a property full
equals tab tab --> creates Equals and Gethashcode method
try tab tab --> creates try and catch block
tryf tab tab -->creates try and finally block
for tab tab -->creates for loop
forr tab tab -->creates for loop in decrement
foreach
while
do
tab -> to move one tab right
shift tab --> to move one tab left
ctrl+k and ctrl+f --> to format the selection
ctrl , --> to open navigation search
shift ctrl enter --> full screen
ctrl m m --> collapse/expand the class/namespace
Thank you Mosh, I have am a big fan of you and your videos. They have been very helpful in my programming career.
Last but not least,you can make your own code snippets.For all your custom needs.
For example i made a code snipet to make a double for loop to iterate through a 2 dimensional array.
one of the first things i learned is bookmarking :D
ctrl+k+k ctrl+k+n ctrl+k+p lets u create and jump to "N" next and "P" previous bookmark :D
u need ctrl+up ctrl+down to move lines and of course ctrl+w to select words
these 6 commands are the most important imo.
then theres ctrl+del to delete a whole line ;)
u need to use shift and ctrl when u want to select inline
if u know these u can code very fast. learn your keyboard and hotkeys these are your tools. use them like tools.
A bit late, but when you press Ctrl-Tab to Switch between Tabs, you can navigate through the files in the panel pressing the arrow keys, you can access to the error Log too.
Very helpful shortcuts, thank you!
Ctrl+alt+l will open solution explorer tab twice and arrow keys to move through solution explorer
Good one Mosh. Just an add on. You can also use Ctrl+K, D to format the code without any selection.. :)
Hello Mosh, it's been 5 years to this video and you are rocking on RUclips these days, I have got so inspired that me too wants to start youtube channel now. Can you share your starting days experience with me?
Sir, this was your first course and I love it.♥
I look for these features in my IDE of choice
- navigate cursor position history
- go to file without touching the file tree
- go to member without scrolling
- multi-cursor editing
- open cmd/terminal quickly
I don't know them all but you could find them. Unfortunately some of these are involving the mouse though.
My contribution:
🔴 Navigate cursor position history
My IDE telss Ctrl+. or Ctrl+Shift+. but it doesn't work here.
🟢 Go to file without touching the file tree
Isn't it the Ctrl+, showed in the video ? Otherwise try Ctrl+Shift+T or Ctrl+1,R to see recent files (pre-populated list)
🟢 Go to member without scrolling
Alt+*
🟢 Multi-cursor editing
If it is sequential lines in the same column
Shift+Alt+↓ or Shift+Alt+↑ to select more line in the direction respectively to the arrow key.
If it is in different part of the code (a few lines or columns away)
Click in one of the spots first
Then add spots maintaining Ctrl+Alt when clicking
🟢 Open cmd/terminal quickly
There are several cmd/Terminals you could open
Ctrl+Alt+A Classic Windows Terminal
Ctrl+ù Opens PowerShell Terminal. I have a French keyboard. I find this one fishy for US/UK/International keyboards. Maybe it is different.
Ctrl+Alt+F to Open the interactive F# command prompt. I don't use that. I'd use the one for C# which has no shortcut by default and Ctrl+Alt+C seems available.
Ctrl+Alt+I Immediate Window. I don't know exactly what it does honestly
A shortcut for NuGet Package Manager Console would be much more interesting should you ask me.
Mosh, to rename to bookmark using keboard, just simple select the bookmark and press F2. Thanks for your videos, they are great!!!
oldest reply on the oldest comment on the oldest video
cool tip still :D
also goodjob making it till here
ctrl k, k to add the bookmark. ctrl k, w to open the bookmarks pane. use the arrows to scroll the bookmarks, and then press F2 on the one you'd like to rename.
Thanks for the tips, those were great! Just a suggestion for all, get the VsVim plugin and learn to navigate using vim keyboard shortcuts, it greatly increased my productivity!
This is a great series! Thank you, are you making more?
Ty
Great video. This will save me so much time. It makes me wonder how many other gamechanging tweaks, extensions, and shortcuts I am missing.
Awesome! Finally understood sinppets. Couldn't get to the bookmark list using Ctrl W-B (or any other way). Maybe that doesn't work in C++?
1 Book mark is interesting, I will try to keep that.
2 Snippet you can find some snippet free eidtor and add some more snippet or change the exist snippet to your coding style.
I also hope that Mic change the comment to toggle instead of insert and remove separately.
This dude saved my life. 🙌
productivity power tools trick is great for me thanks.
7:35 instead of that -> ctrl+k+d Magic :D
It is actually [Ctrl + K] then [Ctrl + D] or just hold down [Ctrl], then [K], [D].
And in a team project, doing that may result all other line of code you didn't touch appear to be modified too. Code reviewer will be wtf on your massive code changes when they trying to merge or reviewing your code. Then prepare to justify, argue, or get backfire.
Safe play is to just highlight only your code section and [Ctrl + K], [Ctrl + F]
You can just use ctrl + k + d to format stuff easily without extensions
Extensions have many othet options to go with
It was only one mentioned here.
Excellent tips.
very nice video, but you could display the table of contents in the beginning, display the shortcut key when pressing it, and make it 3-4 times shorter by speaking faster and getting rid of all the pauses
Thanks you for this helpful video. I use VS every day and I learn a lot with your video (show the zoom with mouse wheel..good when we work on long part of code)
Ooooooh this video is golden! Thank you for the tips! I had no idea these exist.
Hi, nice Tips, Here a solution for your Bookark Mouse Problem: You can rename a Bookmark after u Added it with CTRL + K, K, using CTRL + W, B and press F2
sir, your tricks are very helpful for us thanks, your videos are awesome 🙌
ahh ctrl comma shortcut is awesome!! Thanks!!
Excellent tutorial and very useful shortcuts! Thanks!
Thank you so much for this useful knowledge. I've watched only two of your videos and I already like your chanel. I think I will watch one of your multiple videos tutorials next.
Great video! You saved my life, thank you!!!
7:20; I just re-close the last curly bracket and all my code have been formatted, i think it's better than ctrl-a and ctrl+k and ctrl-f... hmm maybe
awesome tips thanks
Amazing Tips, going to help a great deal both (just wish I had found this a day ago, before I handed in first assignment)
Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!
Great video. Made my coding much more fun!
' Rename bookmark hotkey' is the overall edit name hotkey; F2
nice ,thx for the info. how to hide (not collapse) other methods to focus on one? thx
Great tips, man!
Even though I'm sort of reluctant as to watching this kind of videos in the first place, I found your tutorial very useful. Have a sub.
excellent video and useful hints. Thanks for dharing.
Thank you for the power tools! 🤯
Thank you. Very usefull
Easy to understand the snipped code
In my Version of VS (2013) You have to press [CTRL + K] and after that [CTRL + W] to get the Bookmark-Window.
To delete a bookmark, you have to go to the bookmarked line and press [CTRL + K] twice again and the bookmark will be removed. Maybe this saves someone some minutes of searching.
EDIT:
Ah, damn! I should start watching videos completely bevore I start writing comments. Sorry at this point.
Hi and thank you for the video. I am not sure if you have a video about this, but one of my questions is how do I prepare for interviews that do not let me use a full featured IDE? I have heard some developers do not believe in doing that because when you do work on a project, you have access to it. But regardless of where you stand on the issue, are there any activities besides practicing with a simple editor that would help you become comfortable enough with a language to just type it up? Thanks.
Does those shortcuts applies to both VB and C#, because I was trying on VB and most does not work?You have a great way of illustrating your subjects, I really enjoyed it. Thank you
some work in vb
example tryf with TAB will do a try finally end try
example try and ENTER will do a try Catch ex As Exception end try
example If and double TAB will do a If True Then End If
otherwise within the code, you do CTRL K then CTRL X and there are a lot of code snippets and you'll have some powerfull code snippets available
You can then make your own code snippets and add them in there to use later or in other projects
It was very useful ...Thanks mosh..
But i dont understand ...wat is' resharper'?
Your visual studio theme is so nice. My i know where to grab?
F2 to rename the BookMark. It works for many other things too, in PC.
Well done and thanks.
Great video! Please keep up with the good job!
Superb info. Thanks
Please use 150% zoom for better viewer experience
Thankx man...such a usefull video.. Incrediclly usefull.Thankz once again for your time on such a heavly useful video
I had noticed you used these tips earlier... however, I hate ctrl+f5 combination... it too far to push them by one hand or it requiers to stretch the finders... even C::B have the one button to debug&run, even ms word have the best combo shift+f12, I ever used, to call the "save".BUT ctrl+F5!!! It drives me mad every time i have to use it!
Thanks for the tips!
Watching this at night. The first tip was very useful, but after the transition to the second tip i got blind.
Nice video!
Thank u so much !
Hey, great tips! Will there be an update for VS 2017? For example Navigate To dialog has been replaced with Go To
Excelent tips. Its helpfull. I have a question. Do you know an extension or option that make copy some piece of code into many forms at once? For example, I forgot to write a piece of code in 10 forms and i want to do it without going to each one and copy and paste the same code 10 times.
Have you thought about an abstract class?
Also, you could make a public class with some methods you need in the different classes, link it in every class and then use the methods just like that.
Oops, i misunderstood the question.
I know all what you said, but thank you very much, this is very important.
I learned a lot of from your videos ,
really thank you :)
Thank you!
Very cool ! thanks Mosh
Jump from one bookmark to next ctrl-k-n and back ctrl-k-p. use this everyday
How to include sub-directories in Visual Studio?
Add the "base folder" to the project (project properties -> Configuration Properties -> C/C++ -> Additional Include Directories, "additional include directories")
but there are almost 50+ directories , It is not possible to add each and every folder.
any other solution??
can someone tell me that whether I should use Visual Studio 2019 or Visual Studio code? Please help me. I am very struggled :(
Good one... thanks brother...
super tips.thank u so much
Nice video, thanks for the tips!
Great Video, t.hanks a lot
Dear Mosh, thank you so much for this tutorial. Can you tell me how your VS has customized SQL SQL Prompt , Team etc . Mine has only File Edit Select View.. Help
really helpful thanks a lot
Awesome!! Thnaks!
Use F2 to rename something including bookmarks.
Will watch that
Super useful video, thank you