Home

Awesome

<p align="center"> <a href="https://github.com/fi3ework/vscode-antd-rush"> <img width="200px" height="200px" src="https://user-images.githubusercontent.com/12322740/73346951-ba4dbe80-42c1-11ea-8784-5af0916ec459.png"> </a> </p> <h1 align="center">Antd Rush</h1> <div align="center">

Rush to Ant Design in VS Code

<p align="center"> <a href="https://marketplace.visualstudio.com/items?itemName=fi3ework.vscode-antd-rush"> <img src="https://vsmarketplacebadge.apphb.com/version/fi3ework.vscode-antd-rush.svg" /> </a> <a href="https://marketplace.visualstudio.com/items?itemName=fi3ework.vscode-antd-rush"> <img src="https://vsmarketplacebadge.apphb.com/downloads-short/fi3ework.vscode-antd-rush.svg" /> </a> <a href="https://marketplace.visualstudio.com/items?itemName=fi3ework.vscode-antd-rush"> <img src="https://vsmarketplacebadge.apphb.com/installs-short/fi3ework.vscode-antd-rush.svg" /> </a> <a href="https://marketplace.visualstudio.com/items?itemName=fi3ework.vscode-antd-rush"> <img src="https://vsmarketplacebadge.apphb.com/rating-short/fi3ework.vscode-antd-rush.svg" /> </a> <a href="https://github.com/fi3ework/vscode-antd-rush/actions?query=workflow%3ATest"> <img src="https://github.com/fi3ework/vscode-antd-rush/actions/workflows/test.yml/badge.svg" /> </a> </p> </div>

Download from Visual Studio Marketplace

If this extension is helpful to you, please vote ⭐️⭐️⭐️⭐️⭐️ at Marketplace 😉.

English | 中文

Feature

Caveat

Usage

Switch antd major version

Extension support both v3 and v4 documentation, v3 by default (it will changed to v4 in the future). You can change the default version and set version of each workspace.

Change default version

  1. <kbd></kbd> + <kbd>,</kbd> (macOS), <kbd>Ctrl</kbd> + <kbd>,</kbd> (Windows)
  2. Input Antd Rush: Default Antd Major Version
  3. Select default version

Change workspace version

  1. <kbd></kbd> + <kbd>shift</kbd> + <kbd>P</kbd> (macOS), <kbd>Ctrl </kbd> + <kbd>shift</kbd> + <kbd>P</kbd> (Windows)
  2. Input antdrush: set antd version of current workspace
  3. Select version of current workspace

Component props table hover hint

<img src="assets/hover-component.gif">

Props detail hover hint

<img src="assets/hover-props.gif">

Insert method handler automatically

this.handleMethod = () => {}
const handleMethod = useCallback(() => {})
<img src="assets/insertion.gif">

Contributing

See CONTRIBUTING

Roadmap

See #1

License

MIT