px2rem+ extensionConvert px to rem extension for Visual Studio Code. AutocompleteConvert in bufferConvert all text or selected text. Using the shortcut ctrl-alt-r. SettingsSets the base pixel size of the current file. Using the shortcut ctrl-alt-p. CommentsSupport for adding comments, e.g. Preserve leading zeroKeep the leading zero for converted values < 1. E.g. 0.5rem (preserved) vs .5rem (not preserved) Using vw and vhSupport for using vw and vh instead of rem, using the base pixel size, but only in autocomplete. To use this feature, set Two-way ConversionSupport to convert rem to px, using the base pixel size, but only in autocomplete. Demo |