Skip to content

Feature request: formatting templatesΒ #304

@mark-hahn

Description

@mark-hahn

I want a log line like

console.log("[App] 16, opt:", opt); // file is App.js, 16 is line number, etc.

I tried

  "turboConsoleLog.logMessagePrefix": "[",
  "turboConsoleLog.logMessageSuffix": "]",

but it wrapped the whole line.

[module] log info is a defacto standard for logging. It is all I use.

What would be nice is some kind of formatting like

[%file_pfx] %line_num, %vars

I could use the prefix of [ so console.log("[xxx]"); would separate these from non-turbo comments.

Metadata

Metadata

Assignees

Labels

discussionLet's discuss some topic related to the extensionfeatureNew features suggestions

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions