Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99032

How to activate Intelisense when editing multi-lines css styles in VSCode?

$
0
0

I'm trying to edit a multi-line styles attribute of FooComponent (the multi-line is declared with ` back tick),

I've noticed that when I'm using the multi-line using the back tick, the css intellisense is not enabled, you can see it from screenshot that the h3: {...} is red painted:

enter image description here

import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-foo',  
  templateUrl: './foo.component.html',
  styles: [`
    h3: {
      color: yellow         <-------intellisense does not working
    }
  `]
})
export class FooComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }    
}

I've seen in some tutorial videos that it is possible to use intellisense from inside the styles for multi-lines, any idea how?

Here is the screenshot of the working intellisense example:

enter image description here


Viewing all articles
Browse latest Browse all 99032

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>