https://github.com/mrpineapples/wrap-log-simple
Wrap your variables in VSCode using any language
https://github.com/mrpineapples/wrap-log-simple
golang javascript keyboard-shortcuts logging python ruby typescript vscode-extension
Last synced: 4 months ago
JSON representation
Wrap your variables in VSCode using any language
- Host: GitHub
- URL: https://github.com/mrpineapples/wrap-log-simple
- Owner: mrpineapples
- License: mit
- Created: 2022-04-08T20:09:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T20:15:41.000Z (over 2 years ago)
- Last Synced: 2025-10-20T22:11:53.648Z (8 months ago)
- Topics: golang, javascript, keyboard-shortcuts, logging, python, ruby, typescript, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=mrpineapples.wrap-log-simple
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Wrap Log Simple
A super simple way to log variables in VSCode regardless of your language!
This was originally developed here https://github.com/midnightsyntax/vscode-wrap-console-log
# Features
This extension will read the word under your cursor and insert it into the log function (`console.log` by default)
```
alt (option on mac) + L: console.log("variable");
cmd + L: console.log("variable", variable);
```
Not using Javascript? No problem! Wrap Log Simple can be modified on a per-language basis by updating your `settings.json`.
Example using Go:
```json
"[go]": {
"wrap-log-simple.functionName": "fmt.Println",
"wrap-log-simple.useSemicolon": false,
"wrap-log-simple.useSingleQuotes": false,
},
```
Will output
```go
func main() {
l := "log"
fmt.Println(l) // alt + L
fmt.Println("l", l) // cmd + L
}
```