I then started to look for a lightweight Window Managers (WM's) to replace Gnome with something more stable and easy on the memory. At one point I was considering buying more RAM for my laptop just because this was becoming a daily nuisance for me. And also there is this nagging feeling as a developer that there has to be some sort of a memory leak somewhere, because of which this process keeps increasing in size every few hours. On a 16 GB that's a huge amount especially when my Android IDE, Emulator, Browser and 5 other things are all fighting each other for the already vanishing sweet piece of RAM pie. It's always fine after a fresh start or reboot at the beginning of the day with around 500-600 MB of usage but by sunset, my usage generally climbs upwards of 1.1 GB. ![]() I stuck to the non-LTS release starting from 19.04 and then upgraded to 19.10, but all this while one thing that bothered me a lot was the amount of RAM being consumed by the Gnome Window Manager. The regular cursor means you are in insert mode.I like to keep things simple and stick to the defaults as much as possible (as much as I would love to customize the hell out of things, sadly I don't have that kind of time nowadays) and after distro-hopping for a while, I was happy to use stock Ubuntu. The rectangular cursor indicates that you are in command mode. I repeat: command mode to move around, insert mode to edit/insert text. To switch between insert and command modes you use ESC and i. Go to Preferences -> Plugins -> Marketplace -> Search for " IdeaVim" -> Install. Not everything is there, but the most important ones necessary for navigating around your source code fast and efficiently are there.Ī bonus of learning these shortcuts is that you can use them in regular vim that can be found installed in every Unix/Linux OS (including macOS). IdeaVim is an IntelliJ plugin for "porting" some of Vim's features into Android Studio / IntelliJ. In insert mode, you enter text, and is the regular text-input mode that you know and love. In command mode, you don't edit the text but you move around (navigate). In Vim, there are 2 modes: command mode and insert mode. It's described as "a highly configurable text editor built to make creating and changing any kind of text very efficient". You might have heard vim, one of the oldest and most popular command-line text editors. I am not an expert myself, but I enjoyed the transition to a using-the-mouse-less world. It's not that you will never use the mouse, but you will use it less. ![]() The truth is though that it can help you to be more productive and express faster your thoughts in code. Trust me, I've been there not wanting to leave my mouse for some stupid keyboard shortcuts. The truth is that navigating in your source code without a mouse is not that hard and the shortcuts are not that many. You can't learn all those keyboard shortcuts. ![]() You've heard about those mythical engineers that don't have to use the mouse at all. But the constant switch between mouse keyboard can be annoying and time consuming. To navigate around in your source code you probably use both your keyboard and your mouse. ![]() And since you are reading this, you are probably spending most of your time inside your IDE (which is Android Studio / IntelliJ). We spend most of our days in front of our computers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |