Posts

Showing posts with the label Keyboard Shortcuts

Chrome Keyboard Shortcut To "close Other Tabs"?

Image
Answer : I wrote this extension so that we can assign shortcuts for closing tabs to the right / left /other tabs /pin /unpin tab. Let me know if you can use it Update 2019/06/10: Still works with Chrome 75 No keyboard shortcut i know about and checking google forums neither does anyone else. There is an extension Close Inactive Tabs this is a button which closes all other tabs except the active one No more confusing menus The shortcut key to close all other tabs is Ctrl Shift Alt W if you install Amazing Tab Shortcuts, freely available in the Chrome Web Store. I use it frequently for scripts, which I suspect is your use.         

Any Way (or Shortcut) To Auto Import The Classes In IntelliJ IDEA Like In Eclipse?

Image
Answer : IntelliJ IDEA does not have an action to add imports. Rather it has the ability to do such as you type. If you enable the "Add unambiguous imports on the fly" in Settings > Editor > General > Auto Import , IntelliJ IDEA will add them as you type without the need for any shortcuts. You can also add classes and packages to exclude from auto importing to make a class you use heavily, that clashes with other classes of the same name, unambiguous. For classes that are ambiguous (or is you prefer to have the "Add unambiguous imports on the fly" option turned off), just type the name of the class (just the name is OK, no need to fully qualify). Use code completion and select the particular class you want: Notice the fully qualified names to the right. When I select the one I want and hit enter, IDEA will automatically add the import statement. This works the same if I was typing the name of a constructor. For static methods, you can even just ke...

Chrome Keyboard Shortcut To Pause Script Execution

Answer : While I haven't found the exact solution to this problem, I did come up with a one-liner that can be put in a page (or pasted in the Javascript console) to achieve my goal: jQuery(window).keydown(function(e) { if (e.keyCode == 123) debugger; }); This will cause execution to be paused when you hit F12 . ( debugger is a JavaScript statement that forces a breakpoint.) Update: Dev Tools has many built-in shortcuts (press F1 for a list), but you must be focused in the Dev Tools window for them to work. Pausing script execution is F8 (when looking at the Sources tab, as of Chrome 45) or Ctrl + / . The above one-liner might still be useful if you need to stay focused in the page before pausing. Google's Keyboard Shortcuts Reference lists for "Pause / resume script execution": F8 or Ctrl + \ (Windows) F8 or Cmd + \ (Mac) There are easier ways to inspect things in odd states like hover or active. First, find the DOM node in the Elements...