Wind Extensions ⛳
![Rating](https://marketplace.visualstudio.com/items?itemName=windduongcorp.wind&ssr=false#review-details)
📌 Console.log()
Easily insert and remove console.log statements
![Demo](https://imgur.com/qDwDPCZ.gif)
Usage 📋
With selection:
- Highlight a variable (or really any text)
- Press
CMD + SHIFT + L
- The output (on a new line) will be: console.log('variable: ', variable);
Without selection:
- Press
CMD + SHIFT + L
- The output (on the same line) will be: console.log();
To remove console.logs:
- Press
CMD + SHIFT + D
- This will delete all console.log statements in the current document
📌 Vscode Google Translate
Quickly translate text right in your code 🚀
![Demo](https://imgur.com/CL3Kuk7.gif)
Usage 📋
Translate selected text
- Select some text to translate
- Press
ALT + SHIFT + T
- Select the output languages you want and enjoy 👍
Translate a line under cursor
This feature inserts a newline under the current one with translation
- Set cursor/cursors on line(s) to translate
- Select menu 'Translate line(s) under the cursor'
- Select the output languages you want and enjoy
Preferred language settings
Want to quickly translate into a specific language?
Run Command 'Set Preferred Language' or Set it in VSCode extension settings
By default when you hover over comments and code, you will get a translation into
your preferred language hovering above the element. If you want to turn this off
go into extension settings and un-check HoverTranslations then restart VSCode.
Proxy Support
You can use a proxy to translate text with the following settings:
"wind.vscodeGoogleTranslate.host": "120.0.0.1" // Proxy disabled if empty
"wind.vscodeGoogleTranslate.port": "8080" // Proxy port
"wind.vscodeGoogleTranslate.username": "admin" // Proxy auth disabled if empty
"wind.vscodeGoogleTranslate.password": "password" // Proxy password
📌 Sort JSON objects
Alphabetically sorts the keys in selected JSON objects.
![Demo](https://imgur.com/duA6Mq6.gif)
Usage 📋
- Select a JSON object (note, it uses full lines so ensure the selected lines are a valid JSON object)
- Press
CMD + SHIFT + P
=> Sort JSON
If there are too many entries in the Context Menu, then you can modify which get shown by adding (and editing) this to your VSCode preferences:
"wind.sortJSON.contextMenu": {
"sortJSON": false,
"sortJSONAlphaNum": false,
"sortJSONAlphaNumReverse": false,
"sortJSONKeyLength": false,
"sortJSONKeyLengthReverse": false,
"sortJSONReverse": false,
"sortJSONType": false,
"sortJSONTypeReverse": false,
"sortJSONValues": false,
"sortJSONValuesReverse": false
}
Settings
- You can override the sort order (note: this applies to all levels and overrides reverse sort too). Add this to your preferences (settings.json):
"wind.sortJSON.orderOverride": ["name", "version", "description"]
- You can underride the sort order (note: this applies to all levels and underrides reverse sort too). Add this to your preferences (settings.json):
"wind.sortJSON.orderUnderride": ["dependencies", "devDependencies"]
Sort on save
There's a vscode setting for formatters (settings.json
):
"editor.codeActionsOnSave": {
"source.fixAll": true
}
But you can also selectively enable/disable this formatter with (settings.json
):
{
"editor.codeActionsOnSave": {
"source.fixAll.sortJSON": true
}
}
Or use a hotkey, if you prefer (keybindings.json
):
{
"key": "cmd+shift+a",
"command": "editor.action.codeAction",
"args": {
"kind": "source.fixAll.sortJSON"
}
}
Owner 🙎♂️
Give five stars 🤩
If you like it, rate it