Shortcut to commenting in HTML and CSS in VS Code

preview_player
Показать описание
Here are a few reasons you’d want to comment on sections of code in your file.

- It's not right yet, and you'll un-comment it when it's ready.
- You are temporarily commenting it out to change the behaviour while debugging.
- You're not sure if the code is needed, but don't want to delete it until you've tested some more.
- The code is needed for some software versions, but not this one.
- The code is obsolete, but it took ages to write, and you're emotionally attached to it. Besides, it might be useful one day.
- The problem comes when you put the code to bed and then come back to it a couple of years later to do some maintenance. You will find the codebase littered with commented out code. It will no longer be clear why any of it is there, and it's now just clutter.

Get 50% off on lifetime access to Divi theme by Elegant themes.

Need blazing-fast web hosting for your new site?
Get 50% off your first year With Native Legacy web hosting.
Pay monthly or annually.

#shorts
Рекомендации по теме
Комментарии
Автор

The forward slash / is not a solo key on my keyboard. It's on number 7 for me. So which key do I press with control if I have a Swedish keyboard setting layuot?

MIJones-hmgz
Автор

I can't add css comments in html file, It used to work fine for me but now I'm unable to add it do you have any solution tried yt & google didn't find anything usefull

Shiraz_Mazhar
Автор

Its really great and to the point video thanku so much

isigaming
Автор

i cant believe this video has such little attention, its so clear, concise and great. a like a comment from me!

slayer