How to automatically format your code in VIM with Prettier | VIM Tutorial
Автор: Carlos Mafla
Загружено: 2018-03-17
Просмотров: 17158
Описание:
In this tutorial we'll talk about a controversial topic, people gets very emotional about his way of writing code but there's a very common in web development: different style formats between developers in a team, with Prettier we can forget about all those little decisions we make when we code for example: tabs vs spaces, quotes vs double quotes, empty lines, etc. Ugly code that is hard to read and maintain so it makes developers less productive.
Prettier works with many editors not just VIM.
00:00 - Why use Prettier?
01:30 - How Prettier can format your CSS
02:20 - How Prettier can format your Javascript
02:47 - How to install Prettier with VIM from scratch
03:30- Install Vundle plugin manager
04:50- Install vim-prettier plugin
09:10- Format code on save with Prettier
Please like and subscribe!
➜ / @carlosmafla
Let Prettier format your ugly code.
Prettier ➜https://prettier.io/
Vim Prettier Plugin ➜https://github.com/prettier/vim-prettier
Vundle ➜ https://github.com/VundleVim/Vundle.vim
Yarn ➜ https://yarnpkg.com/en/
Dotfiles ➜https://github.com/gigo6000/dotfiles
Twitter ➜ / gigo6000
Instagram ➜ / gigo6000
Newsletter ➜ http://eepurl.com/dGyT0L
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: