I can definitely use "//" to comment every line, but was wondering if there was a way to do avoid doing this.
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.
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.
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.
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 ( """ """" ).
to date (2020-07-10) - that's not supported.
feature requests can be raised/upvoted @ https://aka.ms/adx.uservoice
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+/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With