In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Salesforce how to use the HaoIDE plug-in, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
People who are familiar with Salesforce know that the back end of Salesforce is called Apex language (similar to Java) and the front end is Visualforce (similar to Jsp). Officially, it does not have its own local IDE. Since the compilation and operation are all in the cloud, it can be coded directly in the browser. This is the advantage of cloud computing. If you change your computer, it will not affect your work. You will not struggle to download IDE and install it because of changing your computer. Environment configuration (this is a painful process).
There are two entrances to the SF system where you can write code:
Program Settings-- > Development-- > Visualforce/Apex/Apex trigger-- > New
Click on the drop-down menu of your name in the upper right corner-> developer console, this is the IDE of SF, can write code, run test classes, view metadata, and so on!
In addition, the official website of SF also has a plug-in for Eclipse, because those who used to do Java are no stranger to Eclipse. After installing the plug-in, I began to write and found that it was not the case at all. There was no code hint, and the keyword highlighted only knew Java. Although it could be written in the browser, at least I was not used to it. In case the TM network was cut off and the handshake point closed, it would not be dead (but I found that the official website had updated the plug-in, and the plug-in was still a long time ago).
Later, after discovering Sublime, he decisively gave up Eclipse,1) heavyweight 2) poor support for APEX.
Sublime is a text editor with a lot of front-end students in use, lightweight, highlighting keywords for most languages, support for installing plug-ins, unlimited trial (which is great, of course, you can buy a license if you like).
Download Sublime 3 (this is the latest) http://www.sublimetext.com/3
Installation, of course, there are Mac,Windows I have used Mac and Windows two, the best on windows, mac in the input of Chinese stutter ruthless, have not found a good way.
Install Package Control this thing is a convenient Sublime text management plug-in plug-in, this powerful, install it, and then through his installation of other plug-ins. It is also easy to manage your installed plugin website: https://packagecontrol.io/installation has installation methods, which can be installed and installed quickly according to its steps. There will be a submenu in the preferences.
SF plug-ins have 2 1:MavensMate detailed tutorial stickers: (https://www.xgeek.net/zh/salesforce/sublime-text-3-mavensmate-for-salesforce-development/) 2:HaoIDE these two can try, see which one suits you, I have been using HaoIDE this is a domestic god development, sublime plug-ins are based on Python development.
To install HaoIDE, click PackageControl to enter the word install in the pop-up list and select Install Package
Enter HaoIDE and click to start the installation.
Seeing this interface shows that the installation is successful.
HaoIDE is open source, and you can see it on github. Https://github.com/xjsender/haoide can see the author information on github.
Configure the SF project. The configuration of HaoIDE is the same as that of sublime, both through json information. Click the haoide menu, click settings, and select settings-user. The configuration reference is in setting-default.
The most basic configuration such as screenshot
Projects: a collection of projects. Multiple projects can be configured under this node.
Project1: is a single project configuration information
Default: indicates whether the current project is active. Only one project can be active.
Login_url: represents the environment link of SF, https://login.salesforce.com Or https://test.salesforce.com
Password: password
Subscribed_metadata_objects: which components need to be downloaded, four are enough for development, and you can download metadata such as objects and fields.
Username: user name
Workspace: the project storage directory, which can be set as a global or a separate one for each project.
After the configuration is saved, you can click haoide to create the project.
Project structure after creation
Create a new VF page and apex,trigger are all the same. Click haoide-- > new-- > Select the component for which you want to enter the name and enter enter.
Save to server, right-click, and select haoide-- > Save To Server
Diff with server is very useful for comparing differences between server files when there are conflicts, but the actual frequency of use does not seem to be much.
Retrieve From Server overrides local
Deploy To Server is deployed to another environment (Note: another environment must be configured beforehand. When you click deploy, select another environment)
Destruct From Server deletes the file on the server
Xxx This server refers to the same function as above in this environment.
Compile Component compilation, basically unused, is generally saved, if there is an error, there will be an automatic prompt. Failed to save.
It has not been used in JSON/XML. It should be converted by gadgets. Take a look at it again when you have time.
Execute Anonymous executes the code snippet, which is the same as used in the developer console in SF. After selecting the code, select Execute Anonymous.
Execute Rest Test has not been used for the time being and should be used to test the Rest interface.
Execute Query writes Soql query to jump to haoku (which seems to be the organization's application on github) https://haoku.herokuapp.com
View Code Coverage is to check the coverage of the test class
View Debug Log Detail has not been used, check the log.
View Id in Salesforce Web jumps to the resource corresponding to id, which has not been used.
View in Salesforce Web jumps to the corresponding interface in SF
View File Attributes to view the properties of the current file in json format
The above are all the functional options of the right-click menu. There are also many global features of haoide, such as:
New create component
Update updates, but generally do not use much, sometimes can not be updated, is to delete the project to download again
Cache update cache, when there are new objects, fields, immediately after the update, prompt in the code, very useful
It is very convenient for Document to look up the document. Enter the prefix to list the relevant components, and click to jump to the SF help document.
Utilities toolset, you can try to use the
Data Loader, after entering SOQL, the data will be displayed in CSV format. It is rarely used in sublime. For not much data, you can use the
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.