Easily generate console.log by typing .log after a variable.
- Auto-completion: Type
.logafter any variable or expression to trigger the suggestion. - Smart Replacement: Automatically converts
variable.logintoconsole.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 (`).
- Type a variable name.
- Type
.(dot). - Select
logfrom the suggestion list (or typelogand hit Enter).
Example:
const myVar = 123;
// Type:
myVar.log
// Result:
console.log('myVar', myVar);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
Initial release of Dot Log.