Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>sujsNew to Visual Studio Code? Get it now.
sujs

sujs

hwl

|
4,973 installs
| (1) | Free
sujs snippets html\css\vue\sujs static server
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

sujs

  • sujs snippets
  • replace the \n to

  • replace the px to rem
  • start a static server and auto refresh webpage!

1. about the sujs:

  • demo: http://yz.365power.cn/
  • down: https://dev.365power.cn/sujs/#evn/evn
  • doc: https://dev.365power.cn

3 command

  • server sujs: start a static server, first open a folder!
  • txt2html sujs: replace the \n to

  • px2rem sujs: replace the px to rem

3. config

3.1 px-->rem

  • default: 16px, change the config: "sujs.rootFontSize":75

3.2 local-config

  • add snippets, eg: "sujs.files":["E:\\work\\vscode-su-snippets.json"]

  • the vscode-su-snippets.json such as:

    { "css": [ { "label": "position absolute top left", "content": ".$1 {\n\tposition: absolute;\n\ttop: ${2:20px};\n\tleft: ${3:20px};\n\tbackground: ${4:#fff}\n}" } ] }

  • or create a .js file:

    module.exports = { "css": [ { "label": "position absolute top left", "content": ``<div></div>`` } ] }

  • "css" is a language name

  • "css" can be used by others,such as: "less":"css,javascript"

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