https://github.com/sirm2z/rax-helper
:hammer_and_pick: Visual Studio Code plugin for Rax.js
https://github.com/sirm2z/rax-helper
extension javascript rax vscode
Last synced: about 2 months ago
JSON representation
:hammer_and_pick: Visual Studio Code plugin for Rax.js
- Host: GitHub
- URL: https://github.com/sirm2z/rax-helper
- Owner: SirM2z
- Created: 2019-11-07T03:45:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:01:37.000Z (over 3 years ago)
- Last Synced: 2025-04-10T15:51:43.091Z (about 1 year ago)
- Topics: extension, javascript, rax, vscode
- Language: TypeScript
- Homepage:
- Size: 12.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Rax-helper
**Rax-helper** is a VS Code extension for Rax.js.
## Features
- [x] Autocomplete
- [x] Snippets
- [x] support JavaScript and TypeScript language
## Usage

## Snippets
Support snippets list:
- `toast`
```
Toast.show("", 2000);
```
- `alert`
```
alert({
title: 'title',
content: 'content',
buttonText: 'tbuttonText'
}).then(() => {
console.log('sure');
});
```
- `confirm`
```
confirm({
title: 'title',
content: 'tcontent',
confirmButtonText: 'confirmButtonText',
cancelButtonText: 'cancelButtonText'
}).then((confirm) => {
console.log(confirm);
});
```
- `navpush`
```
Navigate.push({
url: 'url',
animated: true // only support weex
}).then(() => {
});
```
- `navpop`
```
Navigate.pop({
animated: false // only support weex
}).then(() => {
});
```
- `navgo`
```
Navigate.go({
step: '-1',
animated: false // only support weex
}).then(() => {
});
```
## Tips
You can put intelliSense in advance by setting `"editor.snippetSuggestions": "top"`
**Enjoy!** 😄