Sign in Join
Wiki copytemporary

Cody: what changed

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

OldNewLine
1-"Cody" is a Lazarus design time package extending the IDE with some advanced code tools for power users. It is located in the Lazarus sources components/codetools/ide/cody.lpk since Lazarus 0.9.31.
2-
3-## Contents
4-
5- * 1 Overview
6- * 2 PPU files of project
7- * 2.1 Units
8- * 2.2 Linked Files
9- * 3 Insert file at cursor
10- * 4 Insert call inherited
11- * 5 Add Assign method
12- * 6 Explode a "With" block
13- * 7 Add a "With" block
14- * 8 Declare Variable
15- * 8.1 Features
16- * 9 Unit / Identifier Dictionary
17- * 10 Creating a new dockable IDE Window
18- * 11 See also
1+"Cody" is a Lazarus design time package extending the IDE with some advanced code tools for power users. It is located in the Lazarus sources components/codetools/ide/cody.lpk since Lazarus 0.9.31.
192
203# Overview
214
22-Cody adds the following items to the IDE:
5+Cody adds the following items to the IDE:
236
24- * PPU files of project \- a dialog showing stats about all used ppu files
25- * Insert file at cursor \- a dialog to select a file to replace the current selection
26- * Add call inherited \- adds a statement "inherited FunctionName(params);"
27- * Add Assign method \- a dialog to add an Assign method to a class
28- * Explode a "With" block \- removes a "With" block and fixes all identifiers
29- * Add a "With" block \- add a "With" block and remove identifiers
30- * Declare Variable \- dialog to declare a new variable
31- * Unit / Identifier Dictionary \- Database of all identifiers the IDE has seen
7+- PPU files of project - a dialog showing stats about all used ppu files
8+- Insert file at cursor - a dialog to select a file to replace the current selection
9+- Add call inherited - adds a statement "inherited FunctionName(params);"
10+- Add Assign method - a dialog to add an Assign method to a class
11+- Explode a "With" block - removes a "With" block and fixes all identifiers
12+- Add a "With" block - add a "With" block and remove identifiers
13+- Declare Variable - dialog to declare a new variable
14+- Unit / Identifier Dictionary - Database of all identifiers the IDE has seen
3215
3316# PPU files of project
3417
35- * Menu item: Project / Show ppu files of project
36- * Requires: A compiled project
37- * Key name: _Show used .ppu files ..._ (in the IDE under options Editor / Key mapping)
18+- Menu item: Project / Show ppu files of project
19+- Requires: A compiled project
20+- Key name: *Show used .ppu files ...* (in the IDE under options Editor / Key mapping)
3821
39-This dialog provides statistics about all the current project's used .ppu and .o files.
22+This dialog provides statistics about all the current project's used .ppu and .o files.
4023
41-**Note:** The codetools will try to parse all used .ppu files. The codetools uses its own ppu parser (not the compiler's parser). The advantage of this is that codetools can read many different versions of ppu. The drawback is that it might not be able to read the very latest version. Cody uses the sources as fallback.
24+**Note:** The codetools will try to parse all used .ppu files. The codetools uses its own ppu parser (not the compiler's parser). The advantage of this is that codetools can read many different versions of ppu. The drawback is that it might not be able to read the very latest version. Cody uses the sources as fallback.
4225
4326## Units
4427
45-The first page **Units** shows which unit uses what other units, and where they are used. Note: If a .ppu file cannot be parsed the source (.pas, .pp) will be parsed instead of the .ppu.
28+The first page **Units** shows which unit uses what other units, and where they are used. Note: If a .ppu file cannot be parsed the source (.pas, .pp) will be parsed instead of the .ppu.
4629
47-[![Cody ppu files2.png](/wiki-images/3/3f/Cody_ppu_files2.png)](</File:Cody_ppu_files2.png>)
30+![](/wiki-images/3/3f/Cody_ppu_files2.png)
4831
49-You can sort the list by double-clicking on a column header.
32+You can sort the list by double-clicking on a column header.
5033
51- * General
52- * Source: the full file name of the unit source file
53- * PPU: the full file name of the unit ppu file.
54- * Uses: This lists all units used by that unit.
55- * Used by: This lists all units that use the current unit directly.
56- * Uses path: This gives one path from the project main source to the unit. This is not necessarily the shortest path.
34+- General
35+ - Source: the full file name of the unit source file
36+ - PPU: the full file name of the unit ppu file.
37+- Uses: This lists all units used by that unit.
38+- Used by: This lists all units that use the current unit directly.
39+- Uses path: This gives one path from the project main source to the unit. This is not necessarily the shortest path.
5740
5841## Linked Files
5942
60-The second page **Linked Files** shows what files, libraries and frameworks are used by the project and what unit links them in.
43+The second page **Linked Files** shows what files, libraries and frameworks are used by the project and what unit links them in.
6144
62-[![Cody ppu linked files1.png](/wiki-images/d/d3/Cody_ppu_linked_files1.png)](</File:Cody_ppu_linked_files1.png>)
45+![](/wiki-images/d/d3/Cody_ppu_linked_files1.png)
6346
64- * **Hint:** Double click on an unit to jump to the unit on the _Units_ page.
65- * **Note:** If a .ppu file cannot be parsed, there is no fallback. There will be no information displayed about that unit's linked files.
47+- **Hint:** Double click on an unit to jump to the unit on the *Units* page.
48+- **Note:** If a .ppu file cannot be parsed, there is no fallback. There will be no information displayed about that unit's linked files.
6649
6750# Insert file at cursor
6851
69- * Requires: a file in the source editor
70- * Menu item: Source Editor / popup / Source / Insert file at cursor ...
71- * Shortcut name: _Insert file at cursor_ (in the IDE under options Editor / Key mapping)
52+- Requires: a file in the source editor
53+- Menu item: Source Editor / popup / Source / Insert file at cursor ...
54+- Shortcut name: *Insert file at cursor* (in the IDE under options Editor / Key mapping)
7255
73-This opens a file dialog. Select a file, which will be inserted at the current source editor position. If some text was selected, it will be replaced.
56+This opens a file dialog. Select a file, which will be inserted at the current source editor position. If some text was selected, it will be replaced.
7457
7558# Insert call inherited
7659
77- * Requires: cursor in a method implementation
78- * Menu item: Source Editor / popup / Source / Add call inherited
79- * Shortcut name: _Insert call inherited_ (in the IDE under options Editor / Key mapping)
60+- Requires: cursor in a method implementation
61+- Menu item: Source Editor / popup / Source / Add call inherited
62+- Shortcut name: *Insert call inherited* (in the IDE under options Editor / Key mapping)
8063
81-This adds a call to the inherited method with all parameters. For example:
82-```
64+This adds a call to the inherited method with all parameters. For example:
65+
66+``` pascal
8367type
84- TMyClass = class(TComponent)
85- public
86- constructor Create(AOwner: TComponent); override;
87- end;
88-
89- constructor TMyClass.Create(AOwner: TComponent);
90- begin
91- |
92- end;
93-```
68+ TMyClass = class(TComponent)
69+ public
70+ constructor Create(AOwner: TComponent); override;
71+ end;
9472
95-This will add _inherited Create(AOwner);_ :
96-```
9773constructor TMyClass.Create(AOwner: TComponent);
98- begin
99- inherited Create(AOwner);
100- end;
74+begin
75+ |
76+end;
10177```
10278
103-If the method is a function and the current line is empty it will prepend a _Result:=_.
79+This will add *inherited Create(AOwner);*:
80+
81+``` pascal
82+constructor TMyClass.Create(AOwner: TComponent);
83+begin
84+ inherited Create(AOwner);
85+end;
10486```
87+
88+If the method is a function and the current line is empty it will prepend a *Result:=*.
89+
90+``` pascal
10591function TMyClass.ExecuteAction(Action: TBasicAction): Boolean;
106- begin
107- Result:=inherited ExecuteAction(Action);
108- end;
92+begin
93+ Result:=inherited ExecuteAction(Action);
94+end;
10995```
11096
11197# Add Assign method
11298
113- * Requires: cursor in a class
114- * Menu item: Source Editor / popup / Refactor / Add Assign method ...
115- * Shortcut name: _Add Assign method_ (in the IDE under options Editor / Key mapping)
99+- Requires: cursor in a class
100+- Menu item: Source Editor / popup / Refactor / Add Assign method ...
101+- Shortcut name: *Add Assign method* (in the IDE under options Editor / Key mapping)
116102
117-If you are using Object Pascal, then you often need to copy an object and so you will probably often write an Assign method. This tool generates the method automatically for you and gives you a dialog to quickly select the members to copy. Here is an example of a produced method code:
118-```
103+If you are using Object Pascal, then you often need to copy an object and so you will probably often write an Assign method. This tool generates the method automatically for you and gives you a dialog to quickly select the members to copy. Here is an example of a produced method code:
104+
105+``` pascal
119106type
120- TMyClass = class(TComponent)
121- private
122- FMyInt: integer;
123- public
124- procedure Assign(Source: TPersistent); override;
125- property MyInt: integer read FMyInt write FMyInt;
126- end;
127-
128- procedure TMyClass.Assign(Source: TPersistent);
129- var
130- aSource: TMyClass;
131- begin
132- if Source is TMyClass then
133- begin
134- aSource:=TMyClass(Source);
135- MyInt:=aSource.MyInt;
136- end else
137- inherited Assign(Source);
138- end;
107+ TMyClass = class(TComponent)
108+ private
109+ FMyInt: integer;
110+ public
111+ procedure Assign(Source: TPersistent); override;
112+ property MyInt: integer read FMyInt write FMyInt;
113+ end;
114+
115+procedure TMyClass.Assign(Source: TPersistent);
116+var
117+ aSource: TMyClass;
118+begin
119+ if Source is TMyClass then
120+ begin
121+ aSource:=TMyClass(Source);
122+ MyInt:=aSource.MyInt;
123+ end else
124+ inherited Assign(Source);
125+end;
139126```
140127
141-[![Cody add assign method1.png](/wiki-images/2/22/Cody_add_assign_method1.png)](</File:Cody_add_assign_method1.png>)
128+![](/wiki-images/2/22/Cody_add_assign_method1.png)
142129
143- * Method name: type in the name of the new method. It is automatically checked if there is already such a method or if an ancestor has inherited one.
144- * Parameter name: the parameter name is taken from the inherited method, otherwise **Source**.
145- * Parameter type: the parameter type is taken from the inherited method, otherwise **TObject**. If this type is different than the current class an if-then-else block is added.
146- * If there is an inherited method:
147- * Check 'Override' to override it. This appends the **override** method modifier.
148- * Check 'Call inherited' to add a line 'inherited'.
149- * Check 'Call inherited only if wrong class' to call the inherited method only in the **else** part. This is needed for all direct descendants of **TPersistent**.
150- * Select members to assign:
151- * This lists all variables and all properties that are assignable (readable and writable).
152- * It also shows if a variable is written by a property.
153- * You can select/unselect by clicking on a member.
130+- Method name: type in the name of the new method. It is automatically checked if there is already such a method or if an ancestor has inherited one.
131+- Parameter name: the parameter name is taken from the inherited method, otherwise **Source**.
132+- Parameter type: the parameter type is taken from the inherited method, otherwise **TObject**. If this type is different than the current class an if-then-else block is added.
133+- If there is an inherited method:
134+ - Check 'Override' to override it. This appends the **override** method modifier.
135+ - Check 'Call inherited' to add a line 'inherited'.
136+ - Check 'Call inherited only if wrong class' to call the inherited method only in the **else** part. This is needed for all direct descendants of **TPersistent**.
137+- Select members to assign:
138+ - This lists all variables and all properties that are assignable (readable and writable).
139+ - It also shows if a variable is written by a property.
140+ - You can select/unselect by clicking on a member.
154141
155142# Explode a "With" block
156143
157-This tool removes a **With** and inserts the with expression in front of each identifier needing it.
144+This tool removes a **With** and inserts the with expression in front of each identifier needing it.
158145
159- * Requires: cursor on a **With** expression (e.g. the variable between the keywords **With** and **Do**)
160- * Menu item: Source Editor / popup / Refactoring / Remove With block
161- * Shortcut name: _Remove With block_ (in the IDE under options Editor / Key mapping)
146+- Requires: cursor on a **With** expression (e.g. the variable between the keywords **With** and **Do**)
147+- Menu item: Source Editor / popup / Refactoring / Remove With block
148+- Shortcut name: *Remove With block* (in the IDE under options Editor / Key mapping)
162149
163-For example:
164-```
150+For example:
151+
152+``` pascal
165153with Button1 do begin
166- Name:='Button1';
167- Caption:='Ok';
168- end;
154+ Name:='Button1';
155+ Caption:='Ok';
156+end;
169157```
170158
171-becomes:
172-```
159+becomes:
160+
161+``` pascal
173162Button1.Name:='Button1';
174- Button1.Caption:='Ok';
163+Button1.Caption:='Ok';
175164```
176165
177166# Add a "With" block
178167
179-This tool adds a **With** around the selection of the Source Editor and removes all occurrences of the expression.
168+This tool adds a **With** around the selection of the Source Editor and removes all occurrences of the expression.
180169
181- * Requires: selected Pascal statements in the Source Editor with at least one expression to shorten
182- * Menu item: Source Editor / popup / Refactoring / Add With block
183- * Shortcut name: _Add With block_ (in the IDE under options Editor / Key mapping)
170+- Requires: selected Pascal statements in the Source Editor with at least one expression to shorten
171+- Menu item: Source Editor / popup / Refactoring / Add With block
172+- Shortcut name: *Add With block* (in the IDE under options Editor / Key mapping)
184173
185-For example:
186-```
174+For example:
175+
176+``` pascal
187177Button1.Name:='Button1';
188- Button1.Caption:='Ok';
178+Button1.Caption:='Ok';
189179```
190180
191-becomes:
192-```
181+becomes:
182+
183+``` pascal
193184with Button1 do begin
194- Name:='Button1';
195- Caption:='Ok';
196- end;
185+ Name:='Button1';
186+ Caption:='Ok';
187+end;
197188```
198189
199-**Beware:** This function does not check for conflicts. For example:
200-```
190+**Beware:** This function does not check for conflicts. For example:
191+
192+``` pascal
201193procedure TForm1.Button1Click(Sender: TObject);
202- begin
203- Button1.Enabled:=Enabled;
204- end;
194+begin
195+ Button1.Enabled:=Enabled;
196+end;
205197```
206198
207-When you enclose the assignment the function will stupidly convert to:
208-```
199+When you enclose the assignment the function will stupidly convert to:
200+
201+``` pascal
209202procedure TForm1.Button1Click(Sender: TObject);
210- begin
211- with Button1 do begin
212- Enabled:=Enabled; // wrong
213- end;
214- end;
203+begin
204+ with Button1 do begin
205+ Enabled:=Enabled; // wrong
206+ end;
207+end;
215208```
216209
217-
218-Notes:
210+Notes:
219211
220- * The function does *not* check if the change breaks the code.
221- * When you want to enclose a whole procedure, select all statements, **excluding** the _begin/end_ keywords.
222- * The function does not check if the selection starts or ends within a statement. It will enclose only the text within the selection, no matter if this results in wrong code. Undo is your friend.
212+- The function does *not* check if the change breaks the code.
213+- When you want to enclose a whole procedure, select all statements, **excluding** the *begin/end* keywords.
214+- The function does not check if the selection starts or ends within a statement. It will enclose only the text within the selection, no matter if this results in wrong code. Undo is your friend.
223215
224216# Declare Variable
225217
226-This tool is an interactive version of [[Lazarus IDE Tools|Variable Declaration Completion]]. It tries to guess the type and context of the identifier at cursor and gives you a list of possible places to declare the variable.
218+This tool is an interactive version of [[Lazarus IDE Tools|Variable Declaration Completion]]. It tries to guess the type and context of the identifier at cursor and gives you a list of possible places to declare the variable.
227219
228- * Requires: cursor on an undeclared identifier in a statement.
229- * Menu item: Source Editor / popup / Refactoring / Declare Variable
230- * Shortcut name: _Declare Variable_ (in the IDE under options Editor / Key mapping)
220+- Requires: cursor on an undeclared identifier in a statement.
221+- Menu item: Source Editor / popup / Refactoring / Declare Variable
222+- Shortcut name: *Declare Variable* (in the IDE under options Editor / Key mapping)
231223
232-[![Cody declare var1.png](/wiki-images/0/03/Cody_declare_var1.png)](</File:Cody_declare_var1.png>)
224+![](/wiki-images/0/03/Cody_declare_var1.png)
233225
234-For example:
235-```
226+For example:
227+
228+``` pascal
236229procedure DoSomething;
237- begin
238- i:=3;
239- end;
230+begin
231+ i:=3;
232+end;
240233```
241234
242-Place the cursor on the **i** and invoke the dialog. Select "local variable" and click Ok. The result is
243-```
235+Place the cursor on the **i** and invoke the dialog. Select "local variable" and click Ok. The result is
236+
237+``` pascal
244238procedure DoSomething;
245- var
246- i: Integer;
247- begin
248- i:=3;
249- end;
239+var
240+ i: Integer;
241+begin
242+ i:=3;
243+end;
250244```
251245
252-You can declare member variables:
253-```
246+You can declare member variables:
247+
248+``` pascal
254249procedure DoSomething(A: TMyClass);
255- begin
256- A.Identifier:='Declare a variable in TMyClass';
257- end;
250+begin
251+ A.Identifier:='Declare a variable in TMyClass';
252+end;
258253```
259254
260-You can declare variables on the clipboard. This gives you superior control where the new variable is declared. Move the source editor cursor to the destination and paste (e.g. `Ctrl`+`V`). Cody will automatically create a new var section if needed.
255+You can declare variables on the clipboard. This gives you superior control where the new variable is declared. Move the source editor cursor to the destination and paste (e.g. `Ctrl`+`V`). Cody will automatically create a new var section if needed.
261256
262257## Features
263258
264- * keeps the cursor. You can quickly define a variable without moving/changing your source editor.
265- * Guesses type of assignments: _identifier:= <expression>_, this includes _for i:=0 to_
266- * Guesses type of for in: _for identifier in <list type>_
267- * nested procedures: allows to define a variable on every level
268- * **with** blocks: every with adds its contexts
269- * class sections: private, protected, public, published
270- * interface, implementation, program, package, library
271- * checks if identifier is already declared
272- * automatically adds the needed unit for the type
273- * it can create the declaration on the clipboard. This creates a special format on the clipboard containing all needed information so that a paste will add the needed unit to the uses section. Or you can paste it into another application.
259+- keeps the cursor. You can quickly define a variable without moving/changing your source editor.
260+- Guesses type of assignments: *identifier:=\<expression\>*, this includes *for i:=0 to*
261+- Guesses type of for in: *for identifier in \<list type\>*
262+- nested procedures: allows to define a variable on every level
263+- **with** blocks: every with adds its contexts
264+- class sections: private, protected, public, published
265+- interface, implementation, program, package, library
266+- checks if identifier is already declared
267+- automatically adds the needed unit for the type
268+- it can create the declaration on the clipboard. This creates a special format on the clipboard containing all needed information so that a paste will add the needed unit to the uses section. Or you can paste it into another application.
274269
275270# Unit / Identifier Dictionary
276271
277-Cody keeps track of all global identifiers the IDE has ever encountered. This tool lets you browse this IDE history. You can **jump to the identifier** in the source editor or you can **use the identifier**. **Using** means inserting/replacing the identifier at the current source editor position, extending the uses section and extending the project/package dependencies. In other words, this tool is like _identifier completion_ , but with a far-reaching search scope.
272+Cody keeps track of all global identifiers the IDE has ever encountered. This tool lets you browse this IDE history. You can **jump to the identifier** in the source editor or you can **use the identifier**. **Using** means inserting/replacing the identifier at the current source editor position, extending the uses section and extending the project/package dependencies. In other words, this tool is like *identifier completion*, but with a far-reaching search scope.
278273
279- * Requires: placing the cursor on an identifier in the source editor.
280- * Menu item: Source Editor / (right-click to get the popup menu) / Source / Show Unit/Identifier Dictionary... OR (main menu) Source / Show Unit/Identifier Dictionary...
281- * Shortcut name: _Show unit / identifier dictionary_ (in the IDE under Options / Editor / Key mapping)
274+- Requires: placing the cursor on an identifier in the source editor.
275+- Menu item: Source Editor / (right-click to get the popup menu) / Source / Show Unit/Identifier Dictionary... OR (main menu) Source / Show Unit/Identifier Dictionary...
276+- Shortcut name: *Show unit / identifier dictionary* (in the IDE under Options / Editor / Key mapping)
282277
283-[![Identifierdictionary1.png](/wiki-images/d/d6/Identifierdictionary1.png)](</File:Identifierdictionary1.png>)
278+![](/wiki-images/d/d6/Identifierdictionary1.png)
284279
285- * The top line gives a statistical summary about the current database.
286- * **Hide units of other projects** : By default the dialog shows only the normal identifiers (that is: current project units, package units, and FPC units). If you want data from a unit in some other project, it is best to put that unit into a package. Nevertheless this dialog supports using units of other projects too. Doing so will extend the unit search path.
287- * **Filter** : This text filters the listed identifiers. It works case-insensitively. Exact matches are shown first. If an identifier is defined in more than one unit, there will be an entry for each unit. Note that this is only a **history**. The data may be outdated.
288- * **Starts** : Shows only identifiers that begin with the given text.
289- * **Contains** : Shows only identifiers that contain the given text.
290- * You can use Up and Down keys to move the selected identifier.
291- * _Unit_ , _Package_ : This means the selected identifier's unit/package file.
292- * **Add unit to implementation uses section** : When using an identifier this tool checks if the unit is already in the uses section and will add it if needed. If the source editor is in the implementation section you can choose which uses section to use.
293- * **Help** : Opens this help page.
294- * **Jump to** : Opens the package if needed, opens the file in the source editor and jumps to the identifier. If the identifier has vanished since the last time you opened the file in the IDE, you will get an error.
295- * **Cancel** : Closes the dialog without any action.
296- * **Use identifier** : Opens the package if needed. Replaces the current identifier in the source editor. If needed the uses section(s) is/are updated. If needed, CodeTools adds a package dependency and/or extends the unit search path. It does some sanity checks for possible unit or package conflicts and may give an error. For instance, if the identifier has vanished since the last time you opened the file in the IDE, you will get an error.
297- * **Options: Under Tools / Options / Codetools / Cody**
298- * **Load dictionary after X seconds** : The dictionary is not loaded immediately on start up, so the IDE starts quickly even if the CodeTools database is extensive. The database is loaded when needed, or after a pause whose length you can specify here.
299- * **Save dictionary every X minutes** : The dictionary is updated on idle whenever the IDE parses fresh source text. The dictionary is written to disk at intervals. It is written in another thread, so you won't notice it.
300- * **Save dictionary now** : This forces an immediate write to disk.
280+- The top line gives a statistical summary about the current database.
281+- **Hide units of other projects**: By default the dialog shows only the normal identifiers (that is: current project units, package units, and FPC units). If you want data from a unit in some other project, it is best to put that unit into a package. Nevertheless this dialog supports using units of other projects too. Doing so will extend the unit search path.
282+- **Filter**: This text filters the listed identifiers. It works case-insensitively. Exact matches are shown first. If an identifier is defined in more than one unit, there will be an entry for each unit. Note that this is only a **history**. The data may be outdated.
283+ - **Starts**: Shows only identifiers that begin with the given text.
284+ - **Contains**: Shows only identifiers that contain the given text.
285+ - You can use Up and Down keys to move the selected identifier.
286+- *Unit*, *Package*: This means the selected identifier's unit/package file.
287+- **Add unit to implementation uses section**: When using an identifier this tool checks if the unit is already in the uses section and will add it if needed. If the source editor is in the implementation section you can choose which uses section to use.
288+- **Help**: Opens this help page.
289+- **Jump to**: Opens the package if needed, opens the file in the source editor and jumps to the identifier. If the identifier has vanished since the last time you opened the file in the IDE, you will get an error.
290+- **Cancel**: Closes the dialog without any action.
291+- **Use identifier**: Opens the package if needed. Replaces the current identifier in the source editor. If needed the uses section(s) is/are updated. If needed, CodeTools adds a package dependency and/or extends the unit search path. It does some sanity checks for possible unit or package conflicts and may give an error. For instance, if the identifier has vanished since the last time you opened the file in the IDE, you will get an error.
292+- **Options: Under Tools / Options / Codetools / Cody**
293+ - **Load dictionary after X seconds**: The dictionary is not loaded immediately on start up, so the IDE starts quickly even if the CodeTools database is extensive. The database is loaded when needed, or after a pause whose length you can specify here.
294+ - **Save dictionary every X minutes**: The dictionary is updated on idle whenever the IDE parses fresh source text. The dictionary is written to disk at intervals. It is written in another thread, so you won't notice it.
295+ - **Save dictionary now**: This forces an immediate write to disk.
301296
302297# Creating a new dockable IDE Window
303298
304-Cody adds a new form type "IDE Window, dockable", which allows to easily create a new dockable IDE window like the Code Explorer or the FPDoc editor.
299+Cody adds a new form type "IDE Window, dockable", which allows to easily create a new dockable IDE window like the Code Explorer or the FPDoc editor.
305300
306- * Requires: A designtime package
307- * Menu item: Package Editor / Add / IDE Window, dockable
301+- Requires: A designtime package
302+- Menu item: Package Editor / Add / IDE Window, dockable
308303
309-It also generates code to register a menu item in the View menu and a shortcut.
304+It also generates code to register a menu item in the View menu and a shortcut.
310305
311-Usage:
306+Usage:
312307
313- * Create the form via _Package Editor / Add / IDE Window, dockable_
314- * Change the names and the captions
315- * Save it
316- * Install the package and restart the IDE
317- * You can access your new window via the View menu.
308+- Create the form via *Package Editor / Add / IDE Window, dockable*
309+- Change the names and the captions
310+- Save it
311+- Install the package and restart the IDE
312+- You can access your new window via the View menu.
318313
319314# See also
320315
321- * [[Lazarus IDE Tools]] \- A tutorial about the built-in tools of the standard IDE
322- * [[Codetools]] \- How to program new tools yourself
323- * [[Extending the IDE]] \- How to write your own codetools plugins for the IDE.
316+- [[Lazarus IDE Tools]] - A tutorial about the built-in tools of the standard IDE
317+- [[Codetools]] - How to program new tools yourself
318+- [[Extending the IDE]] - How to write your own codetools plugins for the IDE.
324319
325320---
326-*From the Free Pascal wiki, page "Cody", as the Internet Archive kept it on 2024-09-20. 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).*
321+*From the Free Pascal wiki, page "Cody", as it stood on 2020-02-08 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](/wiki-contact).*
322+Category: Lazarus IDE plugins

Back to history