반응형
아래 공식문서 참조
Ruby with Visual Studio Code
Learn about Visual Studio Code editor features (code completion, debugging, snippets, linting) for Ruby.
code.visualstudio.com
루비 설치하기
- RubyInstaller 다운, 설치
Downloads
Which version to download? If you don’t know what version to install and you’re getting started with Ruby, we recommend that you use the Ruby+Devkit 3.2.X (x64) installer. It provides the biggest number of compatible gems and installs the MSYS2 Devkit
rubyinstaller.org
- 3 번 실행 후 2번 실행
- 터미널에서 설치 확인 ruby -v
- VScode - EXTENSIONS: MARKETPLACE (단축키 Ctrl+Shift+X ) 에서 Ruby LSP 검색 설치
- Manage - Settings (단축키 Ctrl+, ) 에서 rubyLsp.rubyVersionManager 검색 rbenv 설정하면 하루에 한 번 자동으로 gem 업데이트
- Command Palette (Ctrl+Shift+P) 에서 강제 업데이트 실행 가능 Ruby LSP: Update language server gem.
- 루비 파일을 생성하면 언어 및 Ruby LSP 서버 상태 확인 가능
- Ruby 코드 작성, 실행
반응형