Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to mult-line comment in Kusto?

I can definitely use "//" to comment every line, but was wondering if there was a way to do avoid doing this.

like image 717
Beverly Ukandu Avatar asked Jul 10 '20 14:07

Beverly Ukandu


People also ask

How do I block a specific line in Kusto?

By using either the command-line switch -lineMode:false, or by using the directive #blockmode, you can instruct Kusto.Cli to assume every line is a continuation of the previous line, so that queries and commands are delimited by an empty input line only. Kusto.Cli interprets a // string that begins new line as a comment line.

How do you trim single quotes in Kusto?

Single/double quotes at beginning/end will be trimmed By default, Kusto.Cli runs in line input mode. Each newline character is interpreted as a delimiter between queries/commands, and the line is immediately sent for execution. In this mode, you can break a long query or command into multiple lines.

What is the difference between & and && characters in Kusto?

The & character as the last character of a line, before the newline, causes Kusto.Cli to continue reading the next line. The && character as the last character of a line, before the newline, causes Kusto.Cli to ignore the newline and continue reading the next line. Kusto.Cli also supports running in block input mode.

What are multi-line comments used for?

In the above example, the multi-line comments are used to comment more than one line. The first line is a single line comment. The second and third line can be commented using triple quotes ( """ """" ).


2 Answers

to date (2020-07-10) - that's not supported.

feature requests can be raised/upvoted @ https://aka.ms/adx.uservoice

like image 65
Yoni L. Avatar answered Nov 20 '22 18:11

Yoni L.


The visual studio keyboard shortcut for commenting (Ctrl+K+C) or uncommenting (Ctrl+K+U) multiple lines can be useful if you want to do it quickly. I have tested it on Web UI. Alternatively, if you are a Resharper user, you can also use Ctrl+/

like image 32
Adeel Ilyas Avatar answered Nov 20 '22 18:11

Adeel Ilyas