Adding New Items
To add new items, right-click on a project or folder node in the Solution Explorer where you want to add a file and select
Add ⇒ New Folder / New Item.
Add New Item wizard
Selecting the option for adding a new item will open the Add New Item wizard (which also can be called by the Ctrl+Shift+Alt hotkey).
Currently, you can add such types of files:
- Apex Interfaces,
- Test Classes using a template,
- Batchable and Schedulable Classes,
- Lightning Components Bundles,
- Lightning Application Bundles,
- Lightning Event Bundles,
- Lightning Interface Bundles,
- Lightning Tokens Bundles.
All these files are automatically added to the Salesforce Org right after the creation. As an exception, you can also add Anonymous Apex or SOQL Queries files, which would be stored locally in your project but won’t be stored in any way in Salesforce Org.
In this wizard, you need to select the type of file that you want to create, enter its name and press the Add button to proceed.
On the left, you can see a menu that allows you to filter new items. You can group Apex code, Lightning Bundle, and Visualforce files that can be created.
On the right in the wizard, you can see the information about the selected file type and a filter field that allows you to search for the installed templates.
Adding Classes, Schedulable Classes, Components and Pages
For Classes, Schedulable Classes, Components, and Pages you will see the next window asking you to enter a name for the file that will be created. Once done, you need to press the Next button, and The Welkin Suite IDE will send a request to create an item in Salesforce org that you’re working with.
In case of any errors during this process, you will see an appropriate status message. If the file with a given name already exists in Salesforce, you will be prompted to rename the item and retry.
After you specified the name of a new Trigger you will need to enter the additional information: an object and a trigger operation, which will execute it.
Adding Batchable classes
Similarly, creating a Batchable class requires specifying an object from the drop-down list.
Adding Lightning Applications and Components
When creating Lightning Bundles, you will also have the ability to enter a description and add the members to a created bundle from a list.
Adding Anonymous Apex and SOQL Query items
Adding a project to a solution
You can add a project to a solution in two ways:
- right-click on your solution in the Solution Explorer and select
Add ⇒ New Project / Existing Project,
- navigate to the Main Menu:
File ⇒ Add ⇒ New Project / Existing Project.
The next time when you open this solution, it will contain all the opened and added projects.
In this section:
This also may be useful: