Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>px2rem semicolonNew to Visual Studio Code? Get it now.
px2rem semicolon

px2rem semicolon

whiteyin

|
919 installs
| (0) | Free
px转换rem,自动补全分号和注释。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

px2rem extension

px转换rem,自动补全分号和注释。
Convert px to rem extension for Visual Studio Code.

First of all

这个插件脱胎于px2rem +,但是由于加了注释以后需要手动移动光标加上分号不适合我的审美,于是将分号也自动补全了。

This is a extension inspired from px2rem + whitch provides the auto comments features.But I dislike that it do not auto complete semicolon. So, I fork it's source code and add this feature.

Autocomplete

Settings

Sets the base pixel size of the current file.

Comments

Support for adding comments, e.g. /* 100/234 */

Preserve leading zero

Keep the leading zero for converted values < 1. E.g. 0.5rem (preserved) vs .5rem (not preserved)

Demo

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft