Skip to content

Update Image Size

Amadej Glasenčnik edited this page Dec 23, 2023 · 1 revision

Update Image Size

Many web-developers forget to write width and height attributes for <img> tags which leads to poor UX. This action helps you to automate this process: simply place caret inside <img> tag and run this action to add/update width and height attributes.

In CSS, place caret inside property value with url() function to add/update width and height properties for current rule.

Note that this action also works for absolute URLs: it will start searching for requested file from host file’s folder and then will traverse up the tree.

This action can be invoked by pressing: Ctrl + Shift + U