More shortcuts which are useful: CTRL+D to duplicate a line ALT + Up or Down to move a line CTRL+Tab to switch between documents, if you hold it you have a list of all the tabs. CTRL+K+D to format the document if you have a clangformat file. CTRL+M+O to collapse all functions in a file
Got any suggestion on how to duplicate a line and have the old line commented? Sometimes I use copy and paste a line of code just to test it I prefer leaving the old (commented) line about as rewind/backup if I mess the new line up.
@@itsageba But how do I get it to duplicate that line before commenting the line. Example: printf("Hello World! "); turned into this: //printf("Hello World! "); printf("Hello World! );
@KimGameDev Yeah, I don't think there's a built-in shortcut for that available unless you set up a macro, which I think there's an extension for in VS2022
Another fairly useful set of shortcuts related to ctrl+arrow keys would be ctrl+backspace/delete to erase entire words at a time instead of single characters. Like ctrl+arrow keys, these also tend to work in most programs too. Though in some places in Windows, ctrl+backspace doesn't work right. It instead inserts a character that shows up as a hollow square.
Another one I use all the time: holding ALT + arrow up or down key will move your current line up or down, easy for swapping the order of a few lines around quickly. No copy pasting needed, so you won't overwrite the last entry in your clipboard either.
@lowlevelgamedev9330 unordered map has fairly stable iterators and erase returns the next iterators, so you can probably eliminate it with a bit of refactoring
@@lowlevelgamedev9330 trust me, it's not needed and having potentially a couple of random temporary allocations per frame is not an optimization, potentially you ended up with it due to a mistake people make at times with the iterator invalidation of incrementing one to many in the erasure case or forgetting to use the return from erase as the new iterator.
Btw i use pen and paper
we have a new winner
gg
More shortcuts which are useful:
CTRL+D to duplicate a line
ALT + Up or Down to move a line
CTRL+Tab to switch between documents, if you hold it you have a list of all the tabs.
CTRL+K+D to format the document if you have a clangformat file.
CTRL+M+O to collapse all functions in a file
The most efficient thing i know is the multi cursor
same
it really is cool
Btw I use MS Word
btw i use clion
@@nowaygabii clion is really heavy but i have to agree, its better and packed with more features
I use pen and paper
Imagine wasting money for an IDE
@@proman2837 there is a free version with upcoming features
btw i use notepad
most chad person here
@@lowlevelgamedev9330 😎you know it
🗿
Just Ctrl-D to duplicate a line
Got any suggestion on how to duplicate a line and have the old line commented? Sometimes I use copy and paste a line of code just to test it I prefer leaving the old (commented) line about as rewind/backup if I mess the new line up.
@@Kim-e4g4wCtrl + / comments the entire line or selected area
@@itsageba But how do I get it to duplicate that line before commenting the line.
Example:
printf("Hello World!
");
turned into this:
//printf("Hello World!
");
printf("Hello World!
);
@KimGameDev Yeah, I don't think there's a built-in shortcut for that available unless you set up a macro, which I think there's an extension for in VS2022
i kinda surprised you never mentioned the alt+arrowKey short cut to move an entire line around! mighty useful
I use VIM BTW
Btw i use neovim
I also use neovim btw
i also use neovim btw
awesome video, loved the multi line writing tip, I always wondered how to properly use that
Alt+Up/Down arrow to move the line where your cursor is, no need to cut and paste.
Another fairly useful set of shortcuts related to ctrl+arrow keys would be ctrl+backspace/delete to erase entire words at a time instead of single characters. Like ctrl+arrow keys, these also tend to work in most programs too. Though in some places in Windows, ctrl+backspace doesn't work right. It instead inserts a character that shows up as a hollow square.
This is one of the visual studio shortcut video, really helpful.
Ctrl KO has changed my world, thank you!
This is an awesome video!! Thanks, very useful!!
glad you like it 💪
Love this video.
glad you like it 💪
4:13 to duplicate a file isn't there ctrl+d?
Another one I use all the time: holding ALT + arrow up or down key will move your current line up or down, easy for swapping the order of a few lines around quickly. No copy pasting needed, so you won't overwrite the last entry in your clipboard either.
Same here, very handy.
"I'm tired of seeing beginners click this button to open the program" ohh boy you don't want to see what most pro does haha
on notebook F keys are sometimes slower because you have to hold fn (i know it can be changed)
yeah I find it very wierd they are like that, I always change them first thing I fet a laptop
is there an option to automatically add parenthesis after selecting a method from a the auto complete list?
Nice but where's the cheat sheet?
I use Emacs btw
Wait you have to use a mouse?
as a programmer I use vscode instead of Visual Studio, I like my editor work faster than python
TH-cam gave me notification after 6 days
damn youtube still cooking 😂 let him cook bro
0:18 Ackchyually i spend 0% of my time in visual studio
Me with 60% layout keyboard 😵💫
And here I use NeoVim and can say the same thing to you(00:18).
An IDE which adds itself as a dependency to your projects, worse IDE.
what? :))
btw i use arch
neovim ftw 🔥 (except initially learning/setting it up was awful)
Jetbrains>
helo bro!
> std::vector< std::unordered_map::iterator> toRemove
:vomit:
yeah well 😂😂 couldn't auto that
@lowlevelgamedev9330 unordered map has fairly stable iterators and erase returns the next iterators, so you can probably eliminate it with a bit of refactoring
@@reductor_ trust me I would have done that but the code ended up like it is because of an optimization or something that had to be done
@@lowlevelgamedev9330 trust me, it's not needed and having potentially a couple of random temporary allocations per frame is not an optimization, potentially you ended up with it due to a mistake people make at times with the iterator invalidation of incrementing one to many in the erasure case or forgetting to use the return from erase as the new iterator.
How in the world,
you never used other languages
besides C++?
I used other languages but extremely little, besides cpp and glsl I know python and that's about it, but 99% of my the time I do cpp
110 likes / 60 dislikes ratio is crazy
I don't mean to be rude, but ur phone's camera is deffinatly better than ur webcam...
😭 yeah I need to get a better one that's true, tho I guess the phone is 5 times more expensive so no wonder
From which country are you? I can't understand what you're saying , i'm not familiar with your accent
5th