Configurable logger extension for Javascript.
Support use on both selected text and unselected space.
-
Use on selected text
- Select text
- Press
Ctrl+Shift+L
screenshot:
-
Use on unselected space
- Press
Ctrl+Shift+L
- Press
This extension contributes the following settings:
"loggerFunction": {
"type": "string",
"default": "logger.debug",
"description": "Logger's log function string."
},
"insertFunctionNameEnabled": {
"type": "boolean",
"default": true,
"description": "Enable inserting function name."
},
"functionNameSuffix": {
"type": "string",
"default": "_",
"description": "Function name suffix which will be added after function name string."
},
"useSemiColon": {
"type": "boolean",
"default": "true",
"description": "Use semi colon after function call."
}