Configure VS Code to only format changed lines | Auto Formatting in VS Code

preview_player
Показать описание
I use code formatters and linters as much as possible when developing. I love the feedback, and I especially love when saving a file if it can auto format.

I used to have my VS Code set up to format the entire file, but I’ve recently updated my setup to only format the changes I’ve made. I really like this change so I wanted to share.

00:00 Intro
00:15 Example of auto correction
01:10 The settings page
02:10 Why this is important
03:11 An example with the default configuration

------

We help people with their web projects, from making websites and web apps, to helping with strategy and roadmap planning.

You can learn more about us on our website and LinkedIn;

#VSCode #Coding #WebDevelopment #WebDesign #CodingTips
Рекомендации по теме
Комментарии
Автор

Nice tip! Only formating changed lines can really reduce merge conflicts in big branches. Tho, wonder if it needs any git integration tweaks?

QutoDev
join shbcf.ru