Development Tip

Elixir를위한 좋은 IDE

yourdevel 2020. 11. 10. 22:21
반응형

Elixir를위한 좋은 IDE


다음 중 적어도 일부를 수행하는 IDE를 찾고 있습니다.

  • 변수 이름 입력시 코드 완성 및 누른 후 가능한 기능 .
  • 함수 서명 및 문서 표시
  • 함수 / 변수 / 모듈의 정의로 이동

그것도 할 수 있다면 좋을 것입니다

  • 오류에 대해 경고
  • 코드 생성
  • 비계 기본 프로젝트

ElixirSublime 이라는 훌륭한 숭고한 통합이 있습니다 . 찾고있는 대부분의 작업을 확실히 수행합니다. 설정하는 것은 어렵지 않으며 모든 작업을 수행하는 데 약 15 분 밖에 걸리지 않았습니다.

일부 기능 :

  • 구문 강조
  • 모듈 및 기능에 대한 코드 완성.
  • Shift + 클릭으로 모듈 및 함수 정의로 이동
  • SublimeLinter3를 통한 오류 및 경고.

여기에 이미지 설명 입력

또한 Visual Studio Code에 대한 훌륭한 Elixir 확장 지원 이 있으며 현재 도구에 언어를 추가하는 두 가지 확장이 있습니다. 선호하는 것은 vscode-elixir 입니다. Ctrl + P를 누른 다음 "ext install vscode-elixir"을 입력하여 추가 할 수 있습니다.

이 확장은 다음을 포함하여 VS Code에 풍부한 elixir 언어 지원을 추가합니다.

  • 구문 색상
  • 짧은 발췌
  • Intellisense

여기에 이미지 설명 입력


Alchemist Elixir Tooling 통합 Emacs 패키지는 지금까지 다음과 같은 기능을 제공합니다.

  • 믹스 통합
  • Elixir 코드 컴파일 및 실행
  • 인라인 코드 평가
  • 인라인 매크로 확장
  • 문서 조회
  • 정의 조회
  • 강력한 IEx 통합
  • 스마트 코드 완성
  • Elixir 프로젝트 관리
  • Phoenix 지원
  • 회사 모드 와 통합

더 많은 정보는 여기에서 확인할 수 있습니다 : https://github.com/tonini/alchemist.el/blob/master/README.md

질문이있는 경우 IRC 채널 #elixir# emacs-elixir (별명 : tonini )에서 저를 찾을 수 있습니다 .


원자원자 엘릭서 . 현재 기능에서 발췌 한 내용 (기본 Atom 장점 위에, 모두 즉시 사용 가능) :

  • 자동 완성
  • 정의로 이동
  • 문서보기로 이동
  • 인용 코드보기
  • 매크로보기 확장
  • 별칭 및 가져 오기에 따른 모든 기능은 이미 새로운 v1.2 표기법을 지원하고 있습니다.

아톰 엘릭서 자동 완성

개인적으로 vim-mode 플러그인함께 사용하고 있으며 충돌이없는 것 같습니다.

I'm usually an IntelliJ person, but the IntelliJ plugin is still lacking in some of the autocomplete functionality that I'm used to.

Edit: after working with Atom and elixir for about 5 months now I wrote a blog post summarising how I tweaked it to work for me and referencing my entire config.


I have tried all of well known text editors and corresponding elixir packages.

  • IntelliJ with plugin : No alchemist server integration so it is worse then others. Also IntelliJ is slower to start than other IDE-s and editors.
  • Visual Studio Code : Missing some shortcuts but generally you can Elixir code in this editor if you are already using it for other languages.
  • Sublime Text : Same as VS code, if you are using sublime now than you can use it for Elixir
  • Atom : Very good support for everything except code format (beautify) but that will be fixed soon.
  • Emacs : Best support and package but it is not for the feint of heart if you do not use emacs already.

So if you do not have hard preference for some of this editors choose between Emacs or Atom to code Elixir in.


If you are a vim user, There is alchemist.vim plugin which has

  • Completion for Modules and functions
  • Documentation lookup for Modules and functions
  • Jump to the definition
  • Mix integration
  • IEx integration

Atom has a great package for elixir and mostly any other language, you should go and give it a try.


Now, there's also an Elixir plugin for IntelliJ: https://github.com/KronicDeth/intellij-elixir

The author also did a talk at ElixirConf 2015: https://m.youtube.com/watch?v=0Its8r5RBf0


If you are from Java background then don't expect IDE like eclipse or IntelliJ. Though IntelliJ works fine with Elixir, but as of now, I was not able to make it work with Phoenix framework. Your best bet is Atom, or Emacs if you are a guru. VS Code is another cool tool very similar to Atom.


I'll add that Emacs and Alchemist are a powerful combo for writing Elixir code. But I doubt there's anything available anywhere that has all the features you list above.


Visual Studio Code with vscode-elixir extension.

이 확장은 다음을 포함하여 VS Code에 풍부한 elixir 언어 지원을 추가합니다.

  • 구문 색상
  • 짧은 발췌
  • Intellisense

여기에 이미지 설명 입력 elixir-tmbundle은 Elixir Lang의 Sublime 텍스트 지원에 사용할 수있는 훌륭하고 매우 가벼운 패키지입니다. 간단히 실행하여 숭고한 텍스트에 추가 할 수 있습니다.

cd ~/.config/sublime-text-2/Packages # If you are on Linux using sublime text-2

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages # If you are on OS X

cd %HOMEPATH%\AppData\Roaming\Sublime^ Text^ 2\Packages # If you are on Windows Vista or above

cd %HOMEPATH%\Application^ Data\Sublime^ Text^ 2\Packages # If you are on Windows XP

git clone git://github.com/elixir-lang/elixir-tmbundle Elixir

이 패키지에 대한 TextMate 지원도 있습니다.이 링크를 따라 가면 더 많은 정보를 얻을 수 있습니다.

https://github.com/elixir-lang/elixir-tmbundle

참고 URL : https://stackoverflow.com/questions/32185859/good-ide-for-elixir

반응형