Best way for me to use WSL with any INTELLIJ
Hi
I'm mostly work on Mac but recently due to performance I switched developing to my windows pc.
Spent couple days to figure out best way to use WSL to develop Ruby on Rails app with RubyMine. I'm not really into VSCode cause no "shift shift" keybinds.
And finally I figured it out. Here are my advices to make it as efficient as it can be.
1. Use WSL2 due to better I/O - that means you have to use FAST insider preview.
2. WSL 2 has problem with ram consuming without return it means it can consume all ram you have for no reason. Fix here -
https://github.com/microsoft/WSL/issues/4166#issuecomment-604707989 , I recommend run it every 5 minutes - first * shoud be 5 number. And add clear command after cron enabling in bashrc to not see cron initialization every time you open new terminal.
3. On /mnt/c all ubuntu environment works slow while on ubuntu directories all works well but RubyMine didnt scan external file changes that is frustrating.
Fix: Create new partition I made one like 5GB size formatted to FAT32 , to me it fixed performance problems (you have to reboot WSL to initialize new part). It also fixed to me some permission errors.
4. Change default terminal to ubuntu one . File > Settings > Tools > Terminal. Change from cmd.exe to wsl.exe
Please sign in to leave a comment.
Thanks for the tips!