Next: GPS Themes, Up: Customizing and Extending GPS
This dialog, available through the menu Edit->Preferences
, allows you to
modify the global preferences of GPS.
To enable the new preferences, you simply need to confirm by pressing
the OK
button. To test your changes, you can use the Apply
button. Pressing the Cancel
button will undo all your changes.
Each preference is composed of a label displaying the name of the preference, and an editing area to modify its value. If you leave to mouse over the label, a tool tip will be displayed giving an on-line help on the preference.
The preferences dialog is composed of several areas, accessible through the tabs at the left of the dialog. Each page corresponds to a set of preferences.
This page allows you to quickly change the current settings for GPS, including preferences, key bindings, menus.... See GPS Themes for more information on themes. It is only displayed when there are themes registered.
This preference indicates the file system encoding in use. It defaults to
ISO-8859-1, which corresponds to western european characters.
When this preference is enabled, you can navigate through the menus, and type
the key binding you want to associate to a particular item.
To remove a key binding, use the <Backspace> key.
If you wish to save vertical screen space, you can hide this status
bar. The progress bars will no longer be visible. Instead, you can
display the Task Manager through the Tools->Views->Tasks
menu,
to get similar information. This manager can then be put on the right
or left side of the GPS window, for instance just below the Project
View.
Never
,
Always
, or when a source file is associated with the current project
(From_Project
).
Edit->Copy
and Edit->Cut
are saved. This list
is navigated through the menu Edit->Paste
and
Edit->Paste Previous
, as described earlier in this guide.
By default, GPS will call gnatmake to build projects containing Ada sources,
meaning that non Ada sources won't be built. By enabling this preference,
a multi-language build tool, called gprmake will be called.
Note that this tool is still under development, so this option should
only be activated with caution.
This section specifies preferences that apply to the Multiple Document Interface described in Multiple Document Interface.
If False, the title bar is not displayed, to save space on the screen. The
tabs of the notebooks will then be highlighted.
{}[]()
Each modified file is saved under a file called .#filename#
, which is
removed on the next explicit save operation.
Edit->Refill
command.
Never
Automatic
Always
xterm -geo 80x50 -exe vi +%l %f
The following substitutions are provided:
%l
%c
%f
%e
%p
%%
variable1, variable2, variable3 : Integer;
For example, when this preference is set to 1 (the default), continuation lines are indented based on the previous parenthesis plus one space:
if (Condition1 and then Condition2) then
When this preference is set to 3, this gives:
if (Condition1 and then Condition2) then
record
keyword is on its own line.
For example, when this preference is set to 3 (the default), the following sample will be indented as:
type T is record F : Integer; end record;
When this preference is set to 1, this gives:
type T is record F : Integer; end record;
case Value is when others => null; end case;
If this preference is set to Non_Rm_Style
, this would be indented as:
case Value is when others => null; end case;
By default (Automatic
), GPS will choose to indent with an extra
level or not based on the first when
construct: if the first
when
is indented by an extra level, the whole case statement will
be indented following the RM style.
Disabled
no auto-casing will be done;
End_Of_Line
auto-casing will be done when hitting <Enter> key;
On_The_Fly
auto-casing will be done word-by-word while typing.
For the End_Of_Line
and On_The_Fly
policies it is always
possible to force the casing of the current line by pressing the indentation
key (<Ctrl-Tab> by default).
Unchanged
will keep the casing as-is;
Upper
will change the casing of all reserved words to upper case;
Lower
will change the casing to lower case;
Mixed
will change the casing to mixed case (all characters to
lower case except first character and characters after an underscore
which are set to upper case);
Smart_Mixed
As above but do not force upper case characters to
lower case.
<=
, :=
, =>
, ...)
Consider the following code:
Variable : constant String := "a string";
If this preference is enabled, it will be indented as follows:
Variable : constant String := "a string";
record
and
is
keywords immediately with no extra space.
When enabled, the following code will be indented as:
package P is -- Comment [...] end P;
When disabled, the indentation will be:
package P is -- Comment [...] end P;
When the preference is enabled, the debugger will also preserve the contents
of the data window whenever it is closed. Reopening the window either during
the same debugger session, or automatically when a new debugger is started
on the same executable, will recreate the same boxes within the data window.
Note that this preference cannot be taken into account for the current debug session: you need to terminate the current debug session and restart a new one.
If true, a separate console will be created. Under Unix systems, this console is another window in the bottom part of the main window; under Windows, this is a separate window created by the underlying gdb, since Windows does not have the notion of separate terminals (aka ttys).
Note that in this mode under Windows, the Debug->Interrupt
menu
will not interrupt the debugged program. Instead, you need to hit
<Ctrl-C> in the separate execution window to interrupt it while it is
running. On Windows this separate execution window uses the default
system-wide console properties (the size of the window, the
colors...). It is possible to change those properties using the
default console menu (top-left of the console) on Windows XP or using
the control panel on Windows NT.
If false, no execution window will be created. The debugger assumes that the
program being debugged does not require input, or that if it does, input
is handled outside GPS. For example, when you attach to a running process,
this process already has a separate associated terminal.
rsh -l user
rcp -l user
This program is required under Unix systems in order to print, and is set to
a2ps
by default.
If a2ps
is not installed on your system, you can download it
from ftp://ftp.enst.fr/pub/unix/a2ps/, although other printing programs
such as lp
can be specified instead.
Under Windows systems, this program is optional and is empty by default, since a built-in printing is provided. An external tool will be used if specified, such as the PrintFile freeware utility available from http://www.lerup.com/printfile/descr.html
-c
nor -u
switch).
Arguments of interest may include (this will depend on the version of diff
used):
This command should be compatible with the GNU patch utility.
GPS assumes that the following restricitions are true when the preference is activated. If this isn't the case, no error is reported, and only minor drawacks will be visible in GPS (no detection that two files are the same if one of them is a symbolic link for instance, although GPS will still warn you if you are trying to overwrite a file modified on the disk).
The restrictions are the following: