How to setSize() in Codemirror 6?

Hello,

Codemirror 5 has a cm.setSize (width: number|string, height: number|string) method.
Is there a similar setSize method for codemirror 6?

No. You’ll have to use CSS to size the editor (and may need to call requestMeasure after to make sure the editor notices its layout changed).