标签:php settings alt+ com war quick plain cat sig
原文地址:http://hadihariri.com/2014/06/24/no-tabs-in-intellij-idea/
I often come across people complaining about some odd behaviour when it comes to editor tabs in IntelliJ IDEA or any of the other sister products such as WebStorm or PhpStorm. Some expect a different kind of behavior from tabs. Others want the ability to have different colored tabs and some want them numbered.
My advice to all of them? Switch tabs off. You don’t need tabs.
Here’s your typical layout with Tabs
That’s taking up realestate and it’s not providing you with much value other than confusing the hell out of you when you’re looking for that specific index.html file and there are a few of them open. And when you want to navigate to the different tabs, you either have some shortcut key assigned to loop through them or you’re using your mouse!
Bad. Don’t use the mouse. And here’s what you do with Tabs:
Use the keyboard with a few different options (I’m using OSX 10.5+ layout):
Navigate to the recent files you’ve just been looking at: Cmd+E
If you want to see the recent files you’ve just edited: Shift+Cmd+E
And you can use the Switcher to do even faster switches: Ctrl+`
If you want to find a type, Cmd+O.
If you want to find a file, Shift+Cmd+O
If you want to look for a symbol, Alt+Cmd+O.
Or you can just press Shift twice and get Search Everywhere.
Noticed how Search Everywhere by default lists Recent Files?
And remember, most of these dialogs admit patterns such as wildcards, CCC (CamelCaseCompletion), and even going to a specific line number:
You can also toggle bookmarks using F3 (mark) and Alt+F3 (unmark), navigate between them and also display bookmarks:
The Project Structure can help you easily locate files. First off, hide it and activate it using Cmd+1. Secondly, while having it open you can just start typing to quickly locate a file
Once you locate the file, hit F4 or ESC to change to focus to the editor. Incidently, if you want to autoscroll to source (or from source), hit the Gear icon on the Project window and activate it:
Make sure you turn that off also. If you ever need it, invoke it using Alt+Fn+LeftArrow
And remember, you can even invoke the New File Command with Cmd+N (only way you should be creating files, packages and folders) on the Navigation bar. It’s context-aware.
As you can see, there are many ways to navigate a project inside IntelliJ IDEA that doesn’t necessarily include having to look through a list of tabs and figure out where you have to click next.
[转载][IntelliJ IDEA]No Tabs in IntelliJ IDEA
标签:php settings alt+ com war quick plain cat sig
原文地址:https://www.cnblogs.com/tuohai666/p/8879895.html