Kusto Explorer Code Refactoring

Similar to other IDEs, Kusto.Explorer offers several features to KQL query editing and refactoring.

Rename variable or column name

Clicking Ctrl+R, Ctrl+R in the Query Editor window will allow you to rename currently selected symbol.

See below snapshot that demonstrates the experience:

Animated GIF that shows a variable being renamed in the Query Editor window. Three occurrences are simultaneously replaced with the new name.

Extract scalars as let expressions

You can promote currently selected literal as let expression by clicking Alt+Ctrl+M.

Animated GIF. The Query Editor pointer starts on a literal expression. A let statement then appears that sets that literal value to a new variable.

Extract tabular statements as let expressions

You can also promote tabular expressions as let statements by selecting its text and then clicking Alt+Ctrl+M.

Animated GIF. A tabular expression is selected in the Query Editor. A let statement then appears that sets that tabular expression to a new variable.