Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>css2objectNew to Visual Studio Code? Get it now.
css2object

css2object

liuxueyong123

|
185 installs
| (0) | Free
covert the selected css to css object
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

中文 | English

css2object

一款 vscode 插件,将选中的 css 进行转换为 css object

下载

已经上架:marketplace.visualstudio.com

或者在 vscode 扩展中直接搜索 css2object 安装即可

快捷键

mac: command + 3

windows: ctrl + 3

如有冲突,用户可自定义快捷键

功能

选中需要转换的 css 后,按下快捷键(或右键菜单选择 css2object)即可转换为 css object

例:

position: fixed;
bottom: 0;
left: 0;
right: 0;
max-width: 500px;
margin: 0 auto;

结果:

position: 'fixed',
bottom: '0',
left: '0',
right: '0',
maxWidth: '500px',
margin: '0 auto',

License

MIT © Richard McRichface

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