Dot Log (Antigravity)
Easily generate console.log by typing .log after a variable.
Features
- Auto-completion: Type
.log after any variable or expression to trigger the suggestion.
- Smart Replacement: Automatically converts
variable.log into console.log('variable', variable).
- Support for Dot Notation: Works with nested properties like
obj.prop.log.
- Configurable Quotes: Choose between single quotes (
'), double quotes ("), or backticks (`).
Usage
- Type a variable name.
- Type
. (dot).
- Select
log from the suggestion list (or type log and hit Enter).
Example:
const myVar = 123;
// Type:
myVar.log
// Result:
console.log('myVar', myVar);
Extension Settings
This extension contributes the following settings:
dotLog.quote: Specifies the quote style to use for the variable name string.
' (default): Single quote
": Double quote
`: Backtick
Release Notes
0.0.1
Initial release of Dot Log.
| |