It can be a selection, file, or even entire project. If you place it above a method, the block will be populated with argument params, which can be tremendously useful. Do you have your own life-saving shortcuts that are not mentioned? As an added bonus, press the shortcut twice to show the inherited members. Simply place caret at the line you want out of your project and push Cmd + Y. No need to get your hands off of keyboard to reach for the mouse, or use extra shortcuts to select a line + Backspace.
Conclusion Getting accustomed to a new set of shortcuts requires some more brain processing, but as you reach automation, you will gain a significant productivity boost. Once completed, go to your code. The most painful thing is when you hit a shortcut that performs a completely different and often harmful action than what you expect. In Eclipse, this shortcut is used for deleting the line. If Grgur's posts were helpful, maybe his 16 years of experience could help your project too.
Feel free to keep this blog post bookmarked and use it as a cheat sheet when working. In many workspaces, you might also want to close the project browser window in order to save some horizontal space. In the same way I suspect any interpreted language behaviour somewhat cripples the usefulness of autosave. It is even capable of learning from your documentation blocks. Moreover, if you start typing, it will perform a search and select the line you were looking for. Delete line: Cmd + Y Another no-brainer very useful.
To find out more about the cookies we use, see our. Find members in current file: Cmd + F12 Easily on of my top three favorite shortcuts, this one emulates Cmd + Shift + O in Chrome Inspector. So hit shortcut and press enter for a quick and smart code reformat. Please share your thoughts in the comments section. They will help you more than you can imagine, others even more. Walk through the tabs offered and set the style that best match your desired behavior. We use this information in order to improve and customize your browsing experience, and for analytics and metrics about our visitors both on this website and other media.
Un Comment line: Cmd + L Transforming the current line into comment is essential in bug tracking. Alternatively, if you want to find members throughout the project, sacrificing just a tiny bit of speed, then this shortcut is meant for you. Instead of the accustomed Cmd + V for paste, add Shift to the combination and a dialog pops up, offering the options. Amazingly useful in big files. You know how deletions are frequently followed by a confirmation dialog? Just click on each image below to enlarge and print! Refer to the figure below for comparison.
Getting to see the most recently edited files is a speed boost that will help any developer working in a similar environment. Basically, it shows a popup with all objects and respective members associated with a file. Are there shortcuts you would love to have but are missing? It goes like that long ways through history, and even switches open files for you. Pressing Option + Cmd + L will politely ask you which section you want to reformat. Features that could easily boost my productivity in a piece of software I spend so much time with.
Argument documentation for method calls: Cmd + P Useful when you need to remember argument options when calling a method, this shortcut will pull up a callout with the information you need. While line commenting is quicker, here you can be much more precise and more creative with comments. Cycle through the history of most recent changes: Cmd + Shift + Backspace When editing huge files, and I mean many at the same time, it can get difficult to navigate through the maze of code. Most of us have trained our eyes to find a short little word that begins with an Y — Yes. Find members in current project: Cmd + Alt + Shift + N Finding members in a file is quick and easy. In some situations, you may need to omit parts of code e.
He helped clients ranging from Fortune 100 to major governments and startups successfully release enterprise and consumer-facing web applications. Guess what — it even works after you restart the editor! In such situations, I find this shortcut very useful. Just forget about saving the files as if it is a bad habit. In such case, selecting a code area and hitting the shortcut will automatically offer to reformat selection. Just press Cmd + Shift + E and chose from the list, sorted in ascending order relative to the time of last edit.
Visiting other options opened my eyes for new features to look for. Please use line comments and documentation blocks as much as possible. Even cooler, the editor will know how to uncomment lines, even when commented out manually. If you modified keyboard shortcuts to your own needs, than some combination might result in unexpected behavior. .