Skip to content

Commit

Permalink
Merge pull request #12 from deinsoftware/dev
Browse files Browse the repository at this point in the history
add support for react and vue
  • Loading branch information
equiman authored Apr 15, 2023
2 parents ba948f7 + 2c5701a commit e507bd5
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"github",
"limegreen",
"paypal",
"SWPM",
"volta"
],
"markdownlint.config": {
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Fixed for any bug fixes.
Security to invite users to upgrade in case of vulnerabilities.
-->

## 1.4.0 - 2023/04/14

### Added

- support on JSX and TSX and Vue files

## 1.3.0 - 2023/02/27

### Added
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The quick and easy way to debug your code and styles with [VS Code](https://code
- [Snippets](#snippets)
- [Code](#code)
- [Styles](#styles)
- [keyboard](#keyboard)
- [Settings](#settings)
- [About](#about)

Expand Down Expand Up @@ -66,7 +67,7 @@ Open the extension manager with <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>X</kbd> (W

## Snippets

Below is a list of all available snippets and the triggers of each one. The **$** means the `TAB` key and `` the final cursor position.
Below is a list of all available snippets and the triggers of each one. The **$** means the `TAB` jump position and `` the final cursor position.

### Code

Expand Down Expand Up @@ -124,6 +125,19 @@ Below is a list of all available snippets and the triggers of each one. The **$*

---

## Keyboard

Remember to complement the snippets with these keyboard shortcuts that can be used without needing to move the cursor to the start or to the end.

| Action | Win/Linux | macOS |
| ----------------- | -----------------: | ----------------: |
| Insert line above | `ctrl+shift+enter` | `cmd+shift+enter` |
| Insert line below | `ctrl+enter` | `cmd+enter` |

[Back to menu](#menu)

---

## Settings

The `editor.snippetSuggestions` setting in vscode `settings.json` will show snippets on top of the suggestion list.
Expand All @@ -142,6 +156,7 @@ The `editor.snippetSuggestions` setting in vscode `settings.json` will show snip

- [VS Code](https://code.visualstudio.com/) - Code editing redefined.
- [Figma](https://www.figma.com/) - The collaborative interface design tool.
- [SWPM](https://www.npmjs.com/package/swpm) - One Package Manager to command them all.

### Sources

Expand Down
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "debug-snippets",
"description": "VS Code Debug snippets for JS, TS and CSS",
"version": "1.3.0",
"version": "1.4.0",
"displayName": "Debug Snippets",
"publisher": "deinsoftware",
"icon": "images/light-icon.png",
Expand Down Expand Up @@ -43,10 +43,30 @@
"language": "javascript",
"path": "./snippets/code.json"
},
{
"language": "jsx-attr",
"path": "./snippets/code.json"
},
{
"language": "javascriptreact",
"path": "./snippets/code.json"
},
{
"language": "typescript",
"path": "./snippets/code.json"
},
{
"language": "tsx-attr",
"path": "./snippets/code.json"
},
{
"language": "typescriptreact",
"path": "./snippets/code.json"
},
{
"language": "vue",
"path": "./snippets/code.json"
},
{
"language": "css",
"path": "./snippets/styles.json"
Expand Down

0 comments on commit e507bd5

Please sign in to comment.