Comment

Comment by BobJS

Are you using the monaco editor? If so please enable the autoClosingBrackets:

```js

monaco.editor.create(document.getElementById('container'), {

    value: 'const myVar = hello',

    language: 'javascript',

    autoClosingBrackets: 'always'  // <--- This
});

```

When I highlight "hello world" and press ', I want to see "'hello world'" instead of "'"

All that aside, awesome project

parent BobJS 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton