Select to view content in your preferred language

Line numbers in Expression Builder: Turn on by default?

1309
3
03-05-2022 12:33 AM
Status: Open
Bud
by
Esteemed Contributor

Edited:

Could the line numbers in the Expression Builder be turned on by default?
 - I can't think of any scenarios where having them on by default would cause problems.
 - It's not obvious to everyone that the line numbers functionality exists...since they're hidden away in the right click menu.


Old idea:
Could Esri consider adding line numbers to the code window in Expression Builder?

 

3 Comments
jcarlson

Right click!

jcarlson_0-1646512806741.png

The setting feels unnecessarily hidden, and I feel it should be on by default. A little toggle somewhere in the panel would be nice.

DanPatterson

It is right there... as plain as day...

Create and manage attribute rules—ArcGIS Pro | Documentation

😉

 

snip....

Expression—The Arcade expression that defines the rule:

  • Use the Expression Builder Set an expression to configure and verify an Arcade script.
  • If there are syntax errors, the line number and reason are referenced in the error.
  • To see the line numbers in the Expression Builder, right-click the expression input box and select Show Line Numbers.

Perhaps a small section on the expression builder dialog might be in order. 😉

AlfredBaldenweck

It's great that we can turn it on, but wouldn't it make more sense to turn it off, instead?

Why isn't it just on by default?