4 ms·
Are you using the monaco editor? If so please enable the autoClosingBrackets: ```js monaco.editor.create(document.getElementById('container'), { value: '
by BobJS 3y ago
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
- dmitry-vsl 3y agoThank you for the suggestion! I am using the Ace editor. I will consider adding a configuration option, but my main goal is to build a VSCode plugin, so all the configuration will be left to the user.
- meowtimemania 3y agosounds amazing. Your tool is super useful for understanding recursive functions. Only thing I felt that I was missing when using this was a format button to fix the formatting of my code.
- dmitry-vsl 3y agoThank you for your feedback! I believe it has some value in teaching programming in the spirit of "Structure and Interpretation of Computer Programs." There is a JavaScript edition of the SICP book. I believe Leporello.js would be a nice environment for students to solve problems from this book.