Overview
Features
Settings
Custom delimiter
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
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.
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.