AdaCore: Build Software that Matters
Capture d E28099 C3 A9cran 2022 09 22 C3 A0 12 18 02 2022 09 23 130046 xyhq
Sep 23, 2022

New features for string literals and comments in GNAT Studio

We have added several new convenience features that help work with comments and string literals in Ada code.

You can now use Shift-Enter to continue writing a multi-line comment, without having to type '-- ':

Peek 2022 08 08 14 54

The same combination can be used to continue the writing of a string literal on the following line:

Peek 2022 08 08 14 55

Sometimes, you may need to insert a string variable inside a string literal. You can use the Shift-Space shortcut to split the string literal at the cursor position, and simply type the variable name:

Peek 2022 08 08 14 56

If you have copied the variable name into the clipboard, you can use the Shift-Control-V key shortcut to insert this name into the string literal at the cursor position - the splitting and quoting of the string literal is automated for you:

Peek 2022 08 08 14 57

These new features will be available in GNAT Studio 23.0. We hope that these will help save time in your day-to-day work.

Author

Andry Ogorodnik

Picture

Joined AdaCore in 2015. Member of the IDE team and take a part in GNAT Studio and Ada Language Server (ALS) development.

Blog_

Latest Blog Posts