Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 2.16 KB

README.md

File metadata and controls

78 lines (50 loc) · 2.16 KB

logo

Version Version apm

Console.log - VSCode

This extension helps you to generate console.log lines with the selected text in the editor, very useful for every javascript developer (now with support for Dart and Go).

Features

Console.log

English Spanish

running the command Console.log will generate a console.log sentence in the line above, taking care of identation. you can use also the keybinding [ alt + - ] or [ alt + / ] in Windows, Linux and MacOSX

Supported languages:

Supported languages

Console log after (default):

Example outputs:

javascript / typescript / vue / svelte

let enabled = true;
// press [ ⌥ + - ] or [ ⌥ + / ] selecting 'enabled' will produce ↓↓↓
console.log("enabled :", enabled);

dart

bool enabled = true;
// press [ ⌥ + - ] or [ ⌥ + / ] selecting 'enabled' will produce ↓↓↓
debugPrint("${enabled}}", wrapWidth: 1024);

go

enabled := true;
// press [ ⌥ + - ] or [ ⌥ + / ] selecting 'enabled' will produce ↓↓↓
fmt.Printf("enabled: %#v", enabled);

Console log before:

If you want your log in the line before and not after, just add shift:

javascript / typescript / vue / svelte

console.log("enabled :", enabled);
// press [ ⌥ + - + ⇧ ] or [ ⌥ + / + ⇧ ] selecting 'enabled' will produce ↑↑↑
let enabled = true;

Release Notes

0.0.8

Support for Dart(print) and Go(fmt.Println)

0.0.1

Initial release.


Zoidberg