I think you should add word highlighting to make easier to find variables and please remove the first indentation when opening brackets, the bracket should be at the same level and then indent the next instructions:
wrong
if
…{
… …code
…}
ok
if
{
…code
}
Normally you have the first bracket on the same line as your if function like this
if(bla !== blabla){
correct(bla);
} else {
loadData(bla);
}
or without the brackets
if(bla !== blabla) correct(bla);
else loadData(bla);
and the code editor will work as you expected
words for variables like var const let is already highlighted with a color of blue in the code editor
Hi,
Well there are lot of different indentation styles, K&R is ok but if the user want to place the brace in new line the editor shouldn’t add the identation on the brace.
About the code highlighting it doent works (at least in my editor), i’m using version 5.7 and when I select any variable the rest are not highlighted(I’, talking about JS editor). As you can see in the picture when selected ids variable the rest are not highlighted.
Thanks
Personally I very rarely use the built in editor, I use vs code, just make sure to set it (or your editor of choice) as the default editor and double clicking the js file in the Design tab opens it straight away
1 Like
Yes I think I will use it too or Notepad++