Overview

Motivation

Statistics

JS/TS

Insert a log message

Comment inserted log messages

Uncomment log messages

Delete log messages

Correct log messages

PHP (Pro)

Insert a log message

Comment inserted log messages

Uncomment log messages

Delete log messages

Correct log messages

Settings

Custom Prefix

Custom Suffix

Log Function Type

Log Function Name

Custom delimiter

Custom quote

Use semicolon

Enclosing class

Enclosing function

Include file name and line number

Include file name

Include line num

Wrap log message

Line before log message

Line after log message

Custom delimiter

Presentation

The delimiterInsideMessage setting offers you the flexibility to choose a custom delimiter that separates different elements within the log message, like the filename, line number, class, function, and variable.

Usage

  1. To modify the Custom Delimiter setting: Navigate to VS Code settings: File β†’ Preferences β†’ Settings (or Code β†’ Preferences β†’ Settings on Mac). Search for "Turbo Console Log" and locate the delimiterInsideMessage setting. Enter the character(s) you'd like to use as a delimiter into the input field.

  2. In your code: Once you've defined the delimiter, it will be used in the inserted log messages. For example, if you've set the delimiter to " - ", the log message would appear as follows:

console.log('πŸš€ - SelectedVariable:', SelectedVariable);

The delimiterInsideMessage setting is a powerful tool that allows you to customize the log messages to suit your coding style or the project's conventions. Remember, if no delimiter is provided, the default one is '~'.

Delimiter Behavior: Similar to the prefix, the delimiter (the ~ symbol in the example above) also has guaranteed default behavior. If the delimiter setting is left empty or omitted, Turbo automatically defaults to the tilde (~) to ensure proper log detection and parsing for all extension operations.