Difference between revisions of "Ide/Creating new Project Items/Creating a Text File"

From wiki.visual-prolog.com
(New page: <noinclude>Category:Ide</noinclude> '''How to Create a New Text File?''' To create a new text file in the project you should use the '''File | New''' IDE command. In the left pane of ...)
 
m (Category)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Ide]]</noinclude>
<noinclude>[[Category:Ide/Create New Project Items]]</noinclude>
'''How to Create a New Text File?'''
== Creating a Text File ==


To create a new text file in the project you should use the '''File | New''' IDE command. In the left pane of the opened '''Create Project Item''' dialog you should select '''Text File'''. Then the dialog accepts the following shape:
To create a new text file in the project you should use the '''File | New''' IDE command. In the left pane of the opened '''Create Project Item''' dialog you should select '''Text File'''. Then the dialog accepts the following shape:
Line 16: Line 16:
:If it is checked '''ON''', then the created text file will be seen in the {{ide|Project Tree#The Project Tree|Project Tree}}  in the '''Project''' window.
:If it is checked '''ON''', then the created text file will be seen in the {{ide|Project Tree#The Project Tree|Project Tree}}  in the '''Project''' window.


:Notice that this feature is relatively smart. Its behavior depends upon the filename extension of the text file. If you specify the '''.PACK''' extension, for example '''TextModule.pack''', then the IDE understands that the created file can be a real project module (can be a compilation unit) and adds to the project make scripts correspondent commands to compile the module and use the obtained object (<span style="color:Purple">.OBJ</span>) file for project linking.
:Notice that this feature is relatively smart. Its behavior depends upon the filename extension of the text file. If you specify the '''.PACK''' extension, for example '''TextModule.pack''', then the IDE understands that the created file can be a real project module (can be a compilation unit) and adds to the project make scripts correspondent commands to compile the module and use the obtained object (<vp>.OBJ</vp>) file for project linking.


:If '''Add to Project as Module''' is checked '''OFF''', then the created text file will '''NOT''' be seen in the {{ide|Project Tree#The Project Tree|Project Tree}} in the '''Project''' window, and it will not be registered as a project module.
:If '''Add to Project as Module''' is checked '''OFF''', then the created text file will '''NOT''' be seen in the {{ide|Project Tree#The Project Tree|Project Tree}} in the '''Project''' window, and it will not be registered as a project module.


After you fill in all required settings for a new text file, you can press the '''Create''' button.
After you fill in all required settings for a new text file, you can press the '''Create''' button.

Latest revision as of 15:20, 13 June 2013

Creating a Text File

To create a new text file in the project you should use the File | New IDE command. In the left pane of the opened Create Project Item dialog you should select Text File. Then the dialog accepts the following shape:

The New TextFile Dialog

Name:

In the Name edit control you should type in the name of the text file (the TextModule.pack on the picture).
Notice that if you type in a filename without a filename extension, then the default extension .TXT is added.

Parent Directory

In the Parent Directory you should type in or select (using the Browse button) the parent directory. The created text file will be placed into this directory.

Add to Project as Module

If it is checked ON, then the created text file will be seen in the Project Tree in the Project window.
Notice that this feature is relatively smart. Its behavior depends upon the filename extension of the text file. If you specify the .PACK extension, for example TextModule.pack, then the IDE understands that the created file can be a real project module (can be a compilation unit) and adds to the project make scripts correspondent commands to compile the module and use the obtained object (.OBJ) file for project linking.
If Add to Project as Module is checked OFF, then the created text file will NOT be seen in the Project Tree in the Project window, and it will not be registered as a project module.

After you fill in all required settings for a new text file, you can press the Create button.