Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e4290bf

Browse files
Merge branch 'develop' of https://github.com/UruIT/vscode-react-snippets into develop
2 parents 63019fb + 4ebf13e commit e4290bf

File tree

4 files changed

+36
-81
lines changed

4 files changed

+36
-81
lines changed

‎README.md‎

Lines changed: 29 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,38 @@
1-
# uruit-react-snippets README
1+
# React Snippets for Visual Studio Code
22

3-
This is the README for your extension "uruit-react-snippets". After writing up a brief description, we recommend including the following sections.
3+
Extension for Visual Studio Code to add snippets for React in ECMA Script 6.
44

5-
## Features
5+
![Extension demo](./images/snippet-demo.gif)
66

7-
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
7+
## Usage
8+
Type the snippet prefix and press enter.
89

9-
For example if there is an image subfolder under your extension project workspace:
10+
```javascript
11+
u-ci // console.info
12+
u-ctor // class constructor
13+
u-impt // import module statement
14+
u-rfc // functional component (stateless)
15+
u-rcc // class component (statefull)
16+
u-it // Jest test `it`
17+
u-desc // Jest test `describe`
18+
u-suite // Jest test suite (with imports)
19+
u-pt // Generic PropType
20+
u-pts // String PropType
21+
u-ptn // Number PropType
22+
u-ptb // Bool PropType
23+
u-ptf // Func PropType
24+
u-actions // Redux actions
25+
u-action // Redux action
26+
```
1027

11-
\!\[feature X\]\(images/feature-x.png\)
28+
## Installation
1229

13-
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
30+
Install through VS Code extensions. Search for UruIT React Snippets
1431

15-
## Requirements
32+
[Visual Studio Code Market Place: UruIT React Snippets]()
1633

17-
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
34+
Can also be installed using
1835

19-
## Extension Settings
20-
21-
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22-
23-
For example:
24-
25-
This extension contributes the following settings:
26-
27-
* `myExtension.enable`: enable/disable this extension
28-
* `myExtension.thing`: set to `blah` to do something
29-
30-
## Known Issues
31-
32-
Calling out known issues can help limit users opening duplicate issues against your extension.
33-
34-
## Release Notes
35-
36-
Users appreciate release notes as you update your extension.
37-
38-
### 1.0.0
39-
40-
Initial release of ...
41-
42-
### 1.0.1
43-
44-
Fixed issue #.
45-
46-
### 1.1.0
47-
48-
Added features X, Y, and Z.
49-
50-
-----------------------------------------------------------------------------------------------------------
51-
52-
## Working with Markdown
53-
54-
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55-
56-
* Split the editor (`Cmd+\` on OSX or `Ctrl+\` on Windows and Linux)
57-
* Toggle preview (`Shift+CMD+V` on OSX or `Shift+Ctrl+V` on Windows and Linux)
58-
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (OSX) to see a list of Markdown snippets
59-
60-
### For more information
61-
62-
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63-
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
64-
65-
**Enjoy!**
36+
```bash
37+
ext install uruit-react-snippets
38+
```

‎images/snippet-demo.gif‎

4.4 MB
Loading[フレーム]

‎snippets/snippets.json‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
"import PropTypes from 'prop-types';",
3131
"import styles from './1ドル.scss';",
3232
"",
33-
"export default function 1ドル({ prop }) {",
33+
"export default function 1ドル({ 2ドル }) {",
3434
"\treturn (",
35-
"\t\t$2",
35+
"\t\t$0",
3636
"\t);",
3737
"}",
3838
"",
3939
"1ドル.propTypes = {",
40-
"",
40+
"\t2ドル: PropTypes.3ドル.isRequired",
4141
"};"
4242
],
4343
"description": "Stateless component"
@@ -240,7 +240,8 @@
240240
"export default function* watch3ドル() {",
241241
"\tyield takeLatest(1,ドル 4ドル);",
242242
"}"
243-
]
243+
],
244+
"description": "Redux actions"
244245
},
245246
"Redux action": {
246247
"prefix": "u-action",
@@ -249,6 +250,7 @@
249250
"export const 2ドル = () => ({",
250251
"\ttype: 1ドル",
251252
"});"
252-
]
253+
],
254+
"description": "Redux action"
253255
}
254256
}

‎vsc-extension-quickstart.md‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /