20 Must-Know Visual Studio Shortcuts for Developers

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 45

  • @GuildOfCalamity
    @GuildOfCalamity 2 дня назад

    Great video, we need more like this!

  • @Glebka21
    @Glebka21 3 месяца назад +15

    Ctrl+click: go to definition
    Ctrl+Shift+Space: show method arguments
    Ctrl+dot: refactoring
    Ctrl+Shift+V: ring clipboard

  • @JustMightyYetiii
    @JustMightyYetiii 3 месяца назад +12

    I love Visual Studio!

  • @Rabadash8820
    @Rabadash8820 2 дня назад

    Some more of my favs:
    Find/Replace:
    Ctrl+F: open Find dialog
    Ctrl+H: open Replace dialog
    F3: go to next find result
    Shift+F3: go to previous find result
    Alt+R: replace current find result
    Alt+A: replace all
    And navigating between errors/warnings:
    Ctrl+PgUp/PgDn: navigate up/down between errors/warnings
    And multi-caret editing to make you feel like a god:
    Alt+Ctrl+Click: add a caret
    Shift+Alt+Click: add carets to all lines between last and current, on same column
    Shift+Alt+Up/Down: add caret to line above/below

  • @holzb3in
    @holzb3in 3 месяца назад +5

    Shortcuts for multi caret and column selection are awesome and pushed my productivity.

  • @chandruts.2579
    @chandruts.2579 3 месяца назад +4

    Using most of them waiting for next one ❤

  • @TheAlexMistery
    @TheAlexMistery 4 дня назад +2

    Bookmarks:
    Ctrl + K + K - set a bookmark
    Ctrl + K + N - go to the next one

  • @lilcaesarman
    @lilcaesarman 3 месяца назад +9

    Naming things can be hard. Lol... I have encountered times when I take more time to come up with an object name vs actual coding.

  • @xgui4-studios
    @xgui4-studios 3 месяца назад +5

    will you ever release a linux version ?

  • @BobChevy73
    @BobChevy73 15 дней назад

    Excellent! I use most of them but the CTRL + ALT + B was new. Gonna use that for sure. I use SHIFT + ALT + and then arrows to extend the marker to multiple lines. Use that all the time when populating XAML objects.

  • @davidhowell1050
    @davidhowell1050 3 месяца назад +5

    I use Ctrl+X (left hand only, convenient when right hand is on mouse) to delete a whole line in Visual Studio. Is Ctrl+L (must use right-hand) for left-handled folks?

    • @skeltjers
      @skeltjers День назад +1

      Oh wow, that's nice :)
      It just copied the line of the caret if no text is selected. Did not expect it to work like that. Thanks!

  • @3dnoob
    @3dnoob 9 дней назад

    Shift+Alt+.
    The best ☝

  • @ddm9351
    @ddm9351 3 месяца назад +4

    Two caveats: You need to declare which keyboard mapping scheme you're using since some shortcuts won't work as you've described; and, not every user can use the Copilot shortcuts (e.g. those without a paid subscription). And, I'm pretty sure that ctrl-space within the rename function dialog is Copilot not IntelliSense.

    • @DiegoRivera-n2l
      @DiegoRivera-n2l 15 дней назад

      I couldn't use Ctrl + Space within rename function dialog too. =(

  • @jimhewes7507
    @jimhewes7507 15 дней назад +1

    I missed the one-button cut, copy, paste from the old days with the Brief editor so I reassigned:
    F1= copy
    F2 = paste
    F4 = cut
    Also:
    CTRL+ E + F I use a lot to format selection
    CTRL + K + O to open up the corresponding .h or .cpp file (for C++)
    I reassigned ALT + < and ALT + > to move a file between two document groups. I always have two vertical document groups open.

  • @tommaple
    @tommaple 3 месяца назад +3

    • Shift+Delete - delete the line
    • Ctrl+D - duplicate the line
    • Shift+Alt+L - go to the file in Solution Explorer

  • @tassisto
    @tassisto 12 дней назад

    Great, thanks for sharing

  • @nuthanmurari
    @nuthanmurari 3 месяца назад +3

    Frequent usage the following one's
    CTRL + K C and CTRL + K U - Comment and uncomment code efficiently.
    CTRL + K D - Format your document quickly.
    CTRL + Q - Navigate your code with ease.
    CTRL + G - Go to a specific line number.
    ALT + / - Quick access to IntelliSense suggestions.
    CTRL + K S - Insert a snippet.
    PROP TAB and CTOR TAB - Auto-generate properties and constructors.
    ALT + UP and ALT + DOWN - Move lines up or down.
    CTRL + ALT + B - Build your solution.
    CTRL + SHIFT + F9 - Remove breakpoints.
    CTRL + R W - Refactor and extract method.
    Very rare, I am using the following one's,
    CTRL + ,
    CTRL + R CTRL + R - Rename variables and more.
    CTRL + L and CTRL + SHIFT + TAB - Advanced navigation.
    CTRL + M + O, CTRL + M M, and CTRL + M P - Manage code folding.

  • @phizc
    @phizc 2 месяца назад +1

    I use comment line so much I've made it Ctrl+E,Ctrl+C, same with uncomment. That way I can do the entire hotkey with just 1 hand. I've moved/added several other hotkeys to start with Ctrl+E.

  • @tech1964
    @tech1964 5 дней назад

    ctrl+k,ctrl+s to surround the selected block of code with if or try or any of the other snippets

  • @purplescythe3742
    @purplescythe3742 2 месяца назад +1

    Ctrl + [ + S: shows the current file location in Solution Explorer
    It can be really useful when working with gigantic legacy projects

  • @jamiechura9630
    @jamiechura9630 3 месяца назад +2

    Solution explorer search crtl + ; is still my favourite

  • @amertonnz
    @amertonnz 2 месяца назад

    Ctrl-/ toggles a line comment (although I may have set that myself)
    Ctrl-Shift-/ toggles a block comment - can be part of a line - vey handy...

  • @minnedanhieux1040
    @minnedanhieux1040 8 дней назад

    F12 in combi with Ctrl + '-' to go to definition and go back from where you did F12.

  • @martinprohn2433
    @martinprohn2433 14 часов назад

    Ctrl+Space after Ctrl+R, Ctrl+R didn’t work for me. Instead the space was inserted.

  • @mionel237
    @mionel237 15 дней назад +1

    what was the editor theme?

    •  11 дней назад

      It's One Dark Pro. Saw it in another video :)

  • @ОлександрСтахмич-ц7ш

    how to do the opposite for SHIFT+ALT+L, SHIFT+ALT+J in xaml editor?
    For example convert
    to

  • @ДмитроСімоненко
    @ДмитроСімоненко 15 дней назад

    Will be great to add images with keys combinations in the video, not only pronounce them.

  • @sevithaheshan2244
    @sevithaheshan2244 9 дней назад

    4:02 [CTRL + ALT + B] This should be corrected as “see all breakpoints”

  • @stianen
    @stianen 7 дней назад

    CTRL+R CTRL+T: Runs all tests

  • @NiamorH
    @NiamorH 3 месяца назад +2

    In VSCode I use mainly the command palette shortcut Ctrl+Shift+P from which you can pretty much do anything.

  • @43elie11
    @43elie11 13 дней назад

    what are break points ?

  • @kemkirito122
    @kemkirito122 23 дня назад +1

    I think best is Ctrl + S, Alt + F4,

  • @ozkanb
    @ozkanb 3 месяца назад +3

    Why isn't there a shortcut 'go to usages' for god's sake. You forgot about the most important shortcuts like ctrl + f12, shift + f12. But I miss 'go to usage' so much. Just this is a reason enough to go buy resharper.

    • @cykkm
      @cykkm 2 месяца назад +1

      Shift+F12 (Find All References) then F8 to go to the next reference, Shift+F8 to the previous. Isn't this what you're looking for? I just have no idea, I never used Resharper.

  • @CodingAqyanoos
    @CodingAqyanoos 15 дней назад

    you have my voice LOL

  • @ChrisWard74
    @ChrisWard74 Месяц назад +1

    You can not use ctrl + / to commend and uncomment

  • @Ex-Introverts
    @Ex-Introverts 2 месяца назад

    alt + shift + dot : find replace on steroids

  • @o0GzxS41BIbyux3vEoNehl5FH
    @o0GzxS41BIbyux3vEoNehl5FH 2 месяца назад +2

    Alt+F4 :)

  • @pascalmeijerman3402
    @pascalmeijerman3402 8 дней назад

    Ctrl + D duplicate a line

  • @FourtactixTechnologies
    @FourtactixTechnologies 15 дней назад +1

    DEI

  • @punskaari
    @punskaari 3 месяца назад +1

    Wow. Knew all of them. Guess I’m pro now 🤷‍♂️