File: completion.rst

package info (click to toggle)
gnat-gps 5.3dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 50,360 kB
  • ctags: 11,617
  • sloc: ada: 374,346; ansic: 92,327; python: 15,979; xml: 12,186; sh: 3,277; makefile: 1,113; awk: 154; perl: 128; java: 17
file content (24 lines) | stat: -rw-r--r-- 1,204 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
***************
Code Completion
***************

Go on the line 38 of sdc.adb. You can see that there is a null instruction for
the case of Stack.Overflow. We are going to add some code here, using the code
assist capabilities.

Type :kbd:`enter` to create a new line, and then `Scr`, and hit
:kbd:`Ctrl+Space`.  A completion popup will be displayed, showing all the
entities of the project begining with `Scr`. Double click on `Screen_Output`:
the code is automatically completed in the editor. Then add a dot in your code.
The completion popup will be automatically triggered, and will offer you to
complete your code with the entities contained in the `Screen_Output` package.
Select `Msg`, add a space, and then an open parenthesis. Once again, the
completion windows will pop up, and show you the possible parameters for msg.
If you choose the first entry of the completion list ("params of Msg"), the
call will be automatically completed by a list of named parameters. Complete
the list by giving e.g. `"The stack is full."` for `S1`, `""` for `S2`, and
`True` for `End_Line`.

Don't forget to add a semicolon at the end of the instruction. Then hit
:kbd:`F4` in order to rebuild the application.