Sign in Join
Wiki copytemporary

IDE Window: External Tool: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11> **Note:** External tools are global, not project specific
22
33![](/wiki-images/e/eb/IDE_Window_-_External_Tool.png)
44
55### Title
66
77This name is is shown in the IDE menu.
88
99### Program Filename
1010
1111The full path to the tool. For example:
1212
13-` /usr/bin/ppc386`
13+```text
14+ /usr/bin/ppc386
15+```
1416
1517### Parameters
1618
1719The command line parameters. For example:
1820
19-` -l test.pas`
21+```text
22+ -l test.pas
23+```
2024
2125### Working Directory
2226
2327The directory, where to start the tool. All relative paths will be relative to this.
2428
2529### Options
2630
2731#### Scan output for FPC messages
2832
2933Parse the output for FPC messages and jump to errors.
3034
3135#### Show console
3236
3337Only available on MS Windows. Creates a console. Default is false. Since 1.7.
3438
3539#### Hide window
3640
3741Only available on MS Windows. Do not show the application window. Default is true. Since 1.7.
3842
3943#### Scan output for make messages
4044
4145Parse the output for make messages and jump to errors.
4246
4347### Key
4448
4549Define the shortcut for this tool. This is optional.
4650
4751### Macros
4852
4953You can use macros in the programfilename, the parameters and the working directory.
5054
5155See [[IDE Macros in paths and filenames]].
5256
5357### Examples
5458
5559#### Run cmd.exe
5660
5761Choose \<Tools\>\<Configure External Tools\> from the lazarus main menu and setup the following.
5862
5963- Title: cmd.exe
6064- Program Filename: C:\windows\system32\cmd.exe
6165- Working Directory: \$(ProjPath)
6266- Disable all scanners
6367- Show console: enable
6468- Hide window: disable
6569
6670#### Run Tortoisesvn to checkout or update your local svn repository
6771
6872Add a function to checkout svn sources from the repository. This example shows how to do this if you are on windows and have tortoisesvn installed. First create a batch-file in the folder lazarus\tools. (e.g lazarus\tools\checkout_lazarus_win.bat)
6973
7074*tortoiseproc /command:checkout /url:"<http://svn.freepascal.org/svn/lazarus/trunk/>" /path:"..\\"*
7175
7276Then choose \<Tools\>\<Configure External Tools\> from the lazarus main menu and setup the following.
7377
7478- Title: Checkout Lazarus
7579- Program Filename: \$LazarusDir()\tools\checkout_lazarus_win.bat
7680- Working Directory: \$LazarusDir()\tools\\
7781
7882If you want to add an additional function to update the Lazarus sources from repository, then you can create another batch-file with the following content.
7983
8084*tortoiseproc /command:update /path:"..\\"*
8185
8286---
8387*From the Free Pascal wiki, page "IDE Window: External Tool", as it stood on 2023-05-09 after a change by Mattias2, 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](/wiki-contact).*
8488Category: IDE Window

Back to history