![AZDelivery 3 x 1,8 Zoll SPI TFT Display ST7735 mit 128 x 160 Pixeln kompatibel mit Arduino und Raspberry Pi inklusive E-Book!](https://m.media-amazon.com/images/I/41FjZnip1nL._SL160_.jpg)
AZDelivery 3 x 1,8 Zoll SPI TFT Display ST7735 mit 128 x 160 Pixeln kompatibel mit Arduino und Raspberry Pi inklusive E-Book!
15,99 €
Seit Node Red V2.0 gibt es die Möglichkeit den “Monaco”-Codeeditor zu verwenden (auch für Home Assistant). Dadurch erhält man unter anderem eine Autovervollständigung was sehr hilfreich bei functions-nodes ist.
Fügt zum aktivieren des Editors einfach die folgenden Zeilen in die Datei …/node-red/settings.js ein.
codeEditor: {
// Select the text editor component used by the editor.
// Defaults to "ace", but can be set to "ace" or "monaco"
lib: "monaco",
options: {
// The follow options only apply if the editor is set to "monaco"
// theme - must match the file name of a theme in
//packages/node_modules/@node-red/editor-client/src/vendor/monaco/dist/theme
// e.g. "tomorrow-night", "upstream-sunburst", "github", "my-theme"
theme: "tomorrow-night",
// other overrides can be set e.g. fontSize, fontFamily, fontLigatures etc.
// for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.istandaloneeditorconstructionoptions.html
//fontSize: 14,
//fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace",
//fontLigatures: true,
},
},
Das ganze sollte dann in etwa so aussehen:
![](https://cdn.discordapp.com/attachments/799209234289131531/942144340246020146/unknown.png)
Bilder vom Monaco Editor in Node Red
![](https://smarthomeyourself.de/wp-content/uploads/2022/03/monaco2.png)
![](https://smarthomeyourself.de/wp-content/uploads/2022/03/monaco.png)
Danke Damada1337 für den Hinweis!