![]() ![]() It does not always work perfectly, especially if it’s the first time importing something into a project, but in most other cases it will work perfectly. I cannot begin to explain how useful this is. that you are trying to use and then auto import it upon selection. This will give you a list of suggestions for importing a class, interface, etc. You select the current word with Ctrl +D or just move your cursor to it and press Alt + Enter and voilà! You will be able to rename it seamlessly, saving you a ton of time. This is particularly useful for variable renaming. Ctrl + to the rescue! Select all occurrences of a variable: Ctrl + D & Alt + Enter While you could use the standard Tab and Shift + Tab, this would require you to be at the start of the line to outdent, which is not ideal. It will save you a ton of time and I guarantee you that it will provide you with a smoother and more enjoyable development experience. Try using the simple alternative - Alt + Up/Down. Imagine you were to find the line with your mouse cursor, selecting it with a double click, copying it with a right click and selecting Copy, deleting it with Delete, finding the line you want to insert it at with your mouse cursor, creating a new line, then pasting it with a right click and selecting Paste. Moving lines around is something I do practically all day. Ctrl + D (or, well, the Mac alternative to it) comes to the rescue. Lately I've also been using Mac OS a lot and have found it incredibly challenging to select the current word with my touchpad. Selecting the line is also a pretty involved process, as you need to find the line you’re already at with your mouse cursor and then double-click it, which can usually throw you off your keyboard-based flow greatly. Imagine you were to delete your lines by finding your line with the mouse cursor, selecting your line with a double click and then pressing delete - now compare this to using Ctrl + Shift + K - you’re most likely already at the line with your keyboard cursor, so there’s virtually no overhead to deleting it. You will find that most of them have alternative shortcuts too these are just the ones that I use. So here are some that have proven very useful for me, and I use them on a daily basis (note that I use Linux/Windows but Mac OS alternatives are usually very close). ![]() I'd choose one a week and make a concerted effort to incorporate it into your daily work routine. You will probably not be able to master them all in a day. You may very well be spending an extra hour a day just because you’ve never taken the time to learn the proper keyboard shortcuts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |