I recently started working on a pure typescript, tailwind, vue, and storybook.js project. In there, I decided to also try to work with Visual Studio Code and started to be amazed by the amount of integration some tool chains have achieved. Once I’m back to my normal rails job, I will start using vscode too, and now I am wondering what your vscode setup looks like. What are your favorite extensions? Any tips, tricks, etc.? Should we strive for a deeper integration of Ruby and Rails into the vscode ecosystem?
I’ve not found anything overly useful as far as Rails support in vscode. There are some
end tag plugins but I’ve not been overly impressed. Some of the plugins are more of a pain than anything as they add little subtext lines above certain lines of code to tell you extra information such as how many times a method is used etc… (from memory). I always find myself mis-clicking on those lines as they sometimes disappear and reappear as you change the code and click around.
It’s a solid editor though and I enjoy the file browser more than Sublime’s. One major bugbear is that the file browser supports undo on the same key binding as text editing undo’s so if you aren’t focused on a text tab and undo you can sometimes add a file back that you may have deleted hours ago. To make things worse it won’t scroll the file browser to show that file being added back and often you can’t redo the delete so you’re left wondering what file it’s added back and have to use git to figure it out!
Solid editor though…
I started programming in rails with VS Code. Little time before my start and after a bad personal experience with IDE’s(too slow) I started to prioritize the speed than the tools, so I went to the world of code editor. Usually I just leave a window with a terminal with tabs(windows terminal with WSL) running the rails server and for other stuffs. That’s my ruby extensions.
ps: I don’t know the optimization doing the rails views on VSCode because I just use the api-only mode.