An open API service indexing awesome lists of open source software.

https://github.com/mauricioromagnollo/devxonado-snippets

Visual Studio Code snippets.
https://github.com/mauricioromagnollo/devxonado-snippets

extension-vscode snippets visual-studio-code

Last synced: about 1 year ago
JSON representation

Visual Studio Code snippets.

Awesome Lists containing this project

README

          

![](./.github/assets/banner.png)

![BADGE_VSCODE] ![BADGE_VERSION] ![BADGE_LAST_UPDATED] ![BADGE_INSTALLS] ![BADGE_LICENSE]

> My Visual Studio Code snippets.

🌎 [Extension](https://marketplace.visualstudio.com/items?itemName=mauricioromagnollo.devxonado-snippets) | 🏑 [Github Repository](https://github.com/x0n4d0/devxonado-snippets)


## **βš™οΈ Installation**

To install the extension, you can use this command:

```bash
ext install mauricioromagnollo.devxonado-snippets
```

Or, search for `Dev Xonado Snippets` in the Visual Studio Code `Extensions` menu.

![](./.github/assets/install-extension.png)


## **πŸ”€ Supported Languages**

- JavaScript (.js)
- TypeScript (.ts)
- TypeScript React (.tsx)
- Shell Script Bash (.sh)


## **πŸ§ͺ Testing**

- Press `F5` to open a new window with your extension loaded;
- Create a new file with a file name suffix matching your language;
- Verify that your snippets are proposed on IntelliSense;
- You can relaunch the extension from the debug toolbar after making changes to the files listed above;
- You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.

OR,

You can run `npm test` to generate package and install into your VSCode.


## **πŸ“ Snippets**

Below is the list of all avaible Snippets. Press `TAB` key to trigger the snippet when you see the Snippet Display Name in your Visual Studio Code.

### JavaScript and TypeScript

| Trigger | Description | Snippet Display Name |
|---:|:---:|:--|
|`import` | Create one import (using require or import) | `"Snippet: require"` or `"Snippet: import"` |
|`desc` | Create new test suite using (test or it in test case) | `"Snippet: Test Suite (test)"` or `"Snippet: Test Suite (it)"` |
|`test` | Create one test case (using it or test)| `"Snippet: Test Case: (test)"` or `"Snippet: Test Case (it)"` |
|`todo` | Create one todo test case | `"Snippet: Test Case (todo)"` |

### Bash

| Trigger | Description | Snippet Display Name |
|---:|:---:|:--|
|`bash` | Create one shell script bash file | `"Sinppet: New Bash File"` |

### React (TypeScript)

| Trigger | Description | Snippet Display Name |
|---:|:---:|:--|
|`rfc` | Create one new functional component in React based in filename | `"Snippet: Create New React Functional Component"` |
|`styled` | Create ReactJS Styled Components file | `"Snippet: Create New Styled Components File"` |


## **🌱 Contributing**

1. Fork this repository
2. Create one Branch `git checkout -b feature/my-feature`
3. Add you changes `git add .`
4. Commit your changes `git commit -m "feat: add my new feature example"`
5. Push your Branch `git push origin feature/my-feature`
6. Open one Pull Request

> Thanks to contribute! 🀝


## **πŸ“š References**

- [Visual Studio Docs: User Defined Snippets](https://code.visualstudio.com/docs/editor/userdefinedsnippets)
- [Visual Studio Api: Publishing Extensions](https://code.visualstudio.com/api/working-with-extensions/publishing-extension)


## **πŸ“œ License**

[MIT](./LICENSE) Β© MaurΓ­cio Romagnoli.

[BADGE_VSCODE]: https://img.shields.io/badge/Visual%20Studio%20Code-Snippets-blue
[BADGE_VERSION]: https://img.shields.io/visual-studio-marketplace/v/mauricioromagnollo.devxonado-snippets
[BADGE_LICENSE]: https://img.shields.io/github/license/x0n4d0/devxonado-snippets
[BADGE_STARS]: https://img.shields.io/visual-studio-marketplace/stars/mauricioromagnollo.devxonado-snippets
[BADGE_LAST_UPDATED]: https://img.shields.io/visual-studio-marketplace/last-updated/mauricioromagnollo.devxonado-snippets
[BADGE_INSTALLS]: https://img.shields.io/visual-studio-marketplace/i/mauricioromagnollo.devxonado-snippets
[BADGE_RELEASE_DATE]: https://img.shields.io/visual-studio-marketplace/release-date/mauricioromagnollo.devxonado-snippets