[Erlang0002] Erlang ide

Source: Internet
Author: User
Tags netbeans
When my team and I decided to transform technology to Erlang, a series of problems emerged: What ide does Erlang use? How to compile Erlang? How do I run a program compiled by Erlang? How can I debug a program written in Erlang? In fact, these problems are universal. When learning a new language, we often first put forward these issues. I personally think that the basic skills of programmers include code writing, code refactoring, debugging, and performance optimization. These four basic skills require the support of corresponding tools more or less. to do a good job, you must first sharpen your tools and tools. For example, you must solve the problems first. Let's start: Install Erlang  At least install Erlang first,: http://www.erlang.org/download.html windows using: r14b03 windows binary file (82.6 MB)
The installation and compilation of Erlang in the centos environment will be followed by a special article. Erlang ide
  1. Does Visual Studio work? 
    After years of use of Visual Studio and inertial dependency, my first response was: Does vs support Erlang plug-ins? The answer is: there is only one Erlang File Syntax highlighted plug-in erlanghighlighter
    This can be obtained by searching for "Erlang" through tools-> Extension Manager; just like its name, this plug-in only achieves syntax highlighting, and because there are many Erlang syntax Terminators, code folding
    The function is often invalid. There is no ERL code template in the new file. It does not matter. Copy a text template in the vs template and modify the file suffix.
    Even in such a dilemma, I still had the illusion that I would continue to use Vs and even want to write plug-ins for vs to compile and run functions. However, the project was too time-consuming to do so;

  2. Does eclipse work?
    So is eclipse well-known for its many plug-ins? Yes, there is an erlide plug-in.
    Installation Method: Open eclipse, menu-> help-> Software Updates..., available software-> Add site..., erlide URL [http://erlide.sourceforge.net/update]
    Click + select the version you want to install, and then click [install...] On the right to restart.
    Configuration method: Menu-> [Window]-> [preference] Find [Erlang]-> [installed runtimes] and click Add to select the Erlang path.
    Advantages: Eclipse has many advantages. Saving files is compilation.
    Disadvantages: No code is automatically completed, and occasional prompts are slow. The most important thing is:Chinese is not supportedBecause no matter how good it is, it is directly rejected.

    Here: [Erlang 0026] currently the best Erlang ide-erlide
    11:04:02 important changes:Currently, the latest erlide fully supports Chinese characters and the code can be automatically completed.
     

  3. Does netbeans work?
    Yes, but only a specific version is acceptable. At that time, one of our team's leaders was regressing from the latest version of netbeans to see which version can use the erlybird plug-in. Finally, they are coming back.
    Netbeans6.5! Yes! So far, all teams except me have used the 6.5 version of netbeans + erlbird for development;
    Advantages: Syntax highlighting, turning to definition, barely usable smart prompts, code formatting, and compiling and running are all click buttons. It is not a problem to install a SVN plug-in team.
    Disadvantages:File encoding is prone to problems, new files are ANSI encoding, after you enter Chinese language automatically modified to UTF-8 encoding, compilation options lack of customization, I still wrote a few batch of files as a helper Tool
    Close netbeans normally! Abnormal shutdown may cause: ① ide crashes and needs to be reinstalled; ② code loss are lessons learned by team members

  4. Text Editor class
    The rest is the text editor class. Vim Emacs notepad ++ ultraedit studio can be used. Everyone wants to open it: since there is no perfect one, choose your preferred one;
    I am using UE studio, including syntax highlighting, Automatic Code Completion, code folding, reserved words, and so on. Now I have used ue studio to write the Erlang code for half a year, put it easy;
    "All rankings are biased", and all text editor choices are also biased. Check your hobbies and download all my configurations later ,:)!
    [Click here to download my ue configuration]
P.s: foreign counterparts in stackoverflow also raised the same question: What's a good ide for Erlang programming? 17:58:34 update Is there more and more sublim text?This should benefit from its nice syntax highlighting, code auto-completion, and good support for the project view. https://github.com/fjl/Sublime-Erlanghttps://github.com/ostinelli/SublimErl

Here's a screenshot of sublimerl'sCode CompletionFeature:

Here's a screenshot of sublimerl'sAuto-indentingFeature:

Here's a screenshot of sublimerlRunning an eunit specific testIn file.

If it is developed in a Windows environment, you must use the CMD window. You also know that the CMD window is difficult to use. We recommend that you use the alternative powercmd: a better command prompt replacement toolhttp: // www.powerdomain.com/next article: Compile Erlang code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.