I have issues getting both Visual Studio Code and Visual Studio 2013 to recognize the special syntax of template strings (ES6):
Visual Studio Code
Visual Studio 2013
What am I missing?
This should be working now, there is no issue for basic examples in VSCode 1.14.0
I suspect they were just a bit late to the backtick party. There are however still many unclosed issues relating to things like better support for template grammars and language support in ES6 template strings so it appears there is much work to do for advanced capabilities being included.
Try to use back ticks (`), not single or double quotes
var name = 'Walton';
console.log(`Hi ${name}`);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With