Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

IDE Window: Environment Options

Deutsch · English · Français

Files

Max recent files

The maximum number of items in the open recent file menu.

Max recent project files

The maximum number of items in the open recent project menu.

Open last project on start

Enable to automatically reopen the last edited project on IDE start

Show compile dialog

If enabled, you will see a compile 'progress' dialog appear while your project is being compiled. It will also show a summary of the total lines compiled, number of hints, warnings etc.

Lazarus directory

Set here the directory of the Lazarus source directory. The Lazarus source directory contains directories like 'ide', 'debugger', 'converter', 'components' and 'lcl'. It is used to find sources (.pas) of the LCL and components.

Compiler path

This must be the full filename of the used compiler. For example /usr/bin/ppc386 under Linux or /usr/local/bin/ppc386 (32 bit) or /usr/local/bin/ppcx64 (64 bit) under macOS or C:\pp\ppc386.exe under Windows. The filename depends on how the compiler was installed.

FPC Source directory

Set here the directory of the Free Pascal source directory. The source directory contains directories like 'compiler', 'packages', 'rtl' and 'fcl'. Typically under Linux/*BSD/MacOSX this is found at /usr/share/fpcsrc/.

Note: Do not confuse this with the FPC unit/library directory (.../units/i386-win32/), that only contains the compiled .ppu files and has a totally different structure.

Make path

Set here the filename of the make tool. Leave blank to let the IDE use the default. The make tool is a utility used by many projects to help compiling big sources and is therefore installed on almost all Linux and macOS systems by default. The Lazarus Windows installer installs a version too. Under BSD use gmake. See here for more information make.

Delphi installs a make executable too, which is incompatible with gnu make and which cannot be used for Lazarus. Don't leave this option blank if the make from Delphi os on the path.

Directory for building test projects

When a newly created project is not yet saved and you build it, the IDE saves the whole project into this directory and builds it there.\

General

Language

The language of all text of the IDE. You should restart the IDE to make sure all text is reloaded.

Mouse Action

Auto Save

Desktop files

Load or save the environment options to/from a file.

Check changes on disk with loading

When the IDE checks if some editor files changed on disk it normally only compares the file date. To also load the file and compare the content, enable this option.

Hints for component palette

Show hints, when mouse is over the component palette.

Hints for main speed buttons

Show hints, when mouse is over the buttons of the main IDE bar window. (e.g. buttons for open, save)

Window

Hide IDE windows on run

When running the project, all IDE windows are hidden and restored when program stops.

Hide message icons

Normally the Messages window prepends an icon to each message so you can quickly see what type it has or if the IDE can quick fix the message. If you don't want the icons, enable this option.

IDE title starts with project name

Normally the IDE uses as its caption in the taskbar (the panel at top or the bottom of your screen) Lazarus IDE vX.Y.Z - project1. Most taskbars are too short and you can only see Lazarus .... Enable this to show the project name first. This can be useful when starting multiple instances of the IDE to work on several different projects at the same time. Since 0.9.29.

Window positions

Fine tune the positions of the IDE windows.\

IDE CoolBar

Coolbar is visible

If this checkbox is ticked, then the coolbar will be displayed in the IDE.

Coolbar width

Sets the width of the coolbar. If you add more buttons, you will need to increase this value.

Toolbar grab style

Determines the style of the left-hand coolbar grabbers.

Grab width

Sets the width of the collbar grabbers.

Toolbar border style

Determines whether there is a line between toolbars (default).

The Restore defaults button restores the above settings to their defaults.


The Add button inserts a new toolbar.

The Configure button allows you to add and remove items from a toolbar.

The Delete button deletes the selected toolbar.

The Restore defaults button restores the above settings to their defaults.\

Editor ToolBar

\

Component Palette

\

Form Editor

Colors

Grid

Guide lines

The guide lines are the lines, showing to which controls the current selection is currently aligned.

Miscellaneous

Object Inspector

Colors

Colors for various property items.

Miscellaneous

Options

FPDoc Editor

FPDoc files path

Contains paths to FPDoc files with documentation for the units not documented in a project. You can also add paths to the RTL's (*.xml) documentations files, so that tooltip help works for both RTL code.\

Backup

The IDE can create backup files each time it saves a file and an old file exists already.

The options allow to setup the extension and place of backup files.

Hint: Normally it is better to use a version control system like svn or cvs for backups and to disable backups here.\

Naming

Default pascal extension

Whenever the IDE creates a pascal unit, it uses this extension as default. The .pas is typical for Delphi users, while .pp is often used for FPC sources and .p is known on Mac computers.

Note: Custom projects can create pascal sources with defined extension. The IDE will not override this.

Ambiguous file action

Before compile the IDE checks if there are ambiguous files. For example it checks if a unit exists twice in the unit path. The compiler will use the first it finds, which might not the intended thing and this gives strange errors. Here you can set the action, what should happen, if the IDE finds such a file.

Save as - auto rename pascal files lowercase

Source code, that compiles on platforms with case sensitive filenames must make sure, that units are written correct. FPC searches first for the unit name with the uses case, then lowercase and finally uppercase. You can either make sure, that the case is written correct in all units, which is hard for windows users, as they don't need to. Or you can let the IDE save all new units lowercase. The source editor will show the unit name as written in the source code, so you see the right case in the IDE anyway.

When a unit is renamed, update references

File Filters

The File / Open File dialog has a list of filters, that can be configured here. Right click on the grid to add and remove items. (Since 0.9.31)

The IDE always adds a few filters:


From the Free Pascal wiki, page "IDE Window: Environment Options", as it stood on 2020-08-01 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .