How can I adjust pixel positioning in Sublime Text using the keyboard? - ide

I am using the Emmet LiveStyle Chrome Extension and Sublime Text Package which allows me to make edits to a webpage via Sublime Text and be able to see the changes happening live in the browser. It's like Firebug(or Inspector) without the extra step of having to copy the code back to Sublime Text.
In the Inspector in the browser I am able to select the pixel values of an element and adjust those by using the up or down arrow and therefore finely walk in the values I need. When I try that same approach in Sublime Text, it goes to the previous or next line rather.
How can I adjust pixel positioning in Sublime Text using the keyboard? Is there a combination of keys I need to press perhaps?

Emmet plugin has 'Decrement/Increment Number By 0.1/1/10' commands by itself. And 0.1 and 10 has default keyboard shortcuts which are Alt + Down/Up and Super (Command) + Alt + Down/Up respectively. And you can bind any shortcut to any command as you like. Here is the documentation for keybinding stuff.

Related

IntellijJ: Resizing Window with keyboard

I am trying to use the keyboard shortcut Shift+Command+[Left|Right|Up|Down] to resize windows in intelliJ. But it doesn't work. Weirdly, in Window->Active Tool Window -> Resize I do see the option to apply the same options Stretch To [Left|Right|Up|Down] along with the corresponding shortcut key combination and that usually works for all windows except the editor window in which all the four options are shadowed even when the editor windows isn't stretched to it's full extent. Anyone has any idea on what is going on? I can do the resizing using the mouse.
It's because these shortcuts only work in tool windows and the editor is not a tool window. From Tool Windows:
Attached to the bottom and sides of the workspace are IntelliJ IDEA tool windows.
[...]
Within the editor, the shortcuts have different meaning:
ShiftCommand← – Move caret to line start with selection
ShiftCommand→ – Move caret to line end with selection
ShiftCommand↑ – Move statment up
ShiftCommand↓ – Move statment down
The editor doesn't have a specific size, it uses the available space. To make it larger or smaller, you have to resize the attached tool windows.

Keyboard shortcut to switch between horizontally split windows in Intellij

I've done numerous searches to find out how to switch between two files that are horizontally split but can't seem to find it. I know that you can switch between vertically split files by using the Goto Next Splitter option, but there doesn't seem to exist an option for horizontally split. Has anyone else figured this out? Thanks!
An example of a situation where I can't switch between the top and bottom files:
I just tried this out, and Goto Next Splitter (Option-Tab on mac) works just fine for me on horizontally split panes
Note: Using CLion 2017.1.2
If you have IdeaVim installed, you can use the Control-W - J/K command to switch between Vim split panes. See also How do I switch between panes in split mode in Vim?
Use Ctrl + Tab or Ctrl + Shift + Tab to switch between opened buffers (or "file editors", if you like). If you have only two buffers like on your screenshot, you can just press Ctrl + Tab and then by pressing Enter the other editor will become focused.
Important addition:
The shortcut varies depending on your keymap. To figure out proper key combination, open File -> Settings -> Keymap and search for "Switcher" keymap in the search field.

Webstorm MAC OSX: Shortcut to move caret to page bottom or top with selection

In Webstorm MAC OSX, shortcut to Move Caret to Page Bottom/Top with Selection is Shift + Command + Down/Top Arrow with an equal sign.
Please let me know where I can find the key in bold or how to use this shortcut?
Here is an image to show how it looks:
Those are page-up and page-down keys.
From source:
Page up - Smaller keyboards need to do Fn-Up Arrow to get page up.
Page Down - Smaller keyboards need to do Fn-Dwn Arrow to get page up.
Source

Use VI keys everywhere instead of cursor keys

I like VIM a lot because it kind of doubles the power of my keyboard in a way. It's either in insert or motion or whatever they call it mode.
Navigating through source code, typing code, while being able to keep my hands in the touch type position is great.
But when a dialog box is opened (eg. the one using ctrl+F12), if I have to select something other than the first one in the list, I am forced to have to move my right hand to the cursor keys.
Is there a way so that I can use J and K or else something with ctrl or alt or something, so that I can select an item while keeping my hands in the touch typing position?
You can redefine shortcuts for the Up, Down, Left, Right actions in File | Settings | Keymap (the regular keymap that has nothing to do with IdeaVim). IdeaVim provides Vim emulation only for code editors like file editors, interactive language consoles, etc.
Edit: I guess you can't use j and k since characters typed in the structure window are reserved for searching. But you can use Ctrl+N and Ctrl+P which is the same as the navigation shortcuts for pop-up windows in Vim.
Edit 2: You can't use Ctrl+N and Ctrl+P as well due to this bug in IntelliJ.

How can I expand multi-line selection to full lines in PHPStorm?

In Sublime Text I can arbitrarily select a set of lines and then use ⌘+L to expand the selection to the full lines. Is there a similar command in PHPStorm / WebStorm? (I'd like to map that command to a keyboard shortcut.)
I know PHPStorm has the option "Select Line at Caret", but that selects only one line.
Update
Nowadays (welcome 2020) Go to Preferences > Keymap. Change or add the value to
Add Carets to Ends of Selected Lines => CMD+SHIFT+L to have it behave like Sublime Text so it looks like
Old Answer
This is as close as I could get it (before 2020):
Go to Preferences > Keymap. Search for Clone Caret Above/Below.
On a Mac, it looks like this
The keys are:
CMD+SHIFT+CTRL+ARROW_UP for Clone Caret Above
CMD+SHIFT+CTRL+ARROW_DOWN for Clone Caret Below
Click on Apply and it will work
With WebStorm 11 (at least) the multi-caret keyboard shortcut is:
Ctrl then Ctrl+Arrow Up (or click & drag with the middle mouse button/scroll wheel)
then to select the full lines:
Home then Shift+End
which you could even create as a macro with a keyboard shortcut.
I used to accidentally activate the multi-caret all the time (I scroll with Ctrl+Up/Down), so I knew how to do part of it, but it took me ages to figure out that extra Ctrl tap at the beginning.
Hold down Alt + Shift and left click on the lines you want to select. This will put multiple cursors on the editor. Now you can use the Select Line at Caret option you mentioned to select all those lines.
You can find more about multiple selections here.
This is currently not possible with a selection. However, you can still do that from the keyboard. Instead of doing selections set up a shortcut for Clone Caret Above (Alt+Shift+U for me) and Clone Caret Bellow (Alt+Shift+D for me). This allows to go up or down a line and add a caret there. So instead of selecting each line, you directly move the caret there and clone it.
I am also coming from Sublime Text and missing that feature, but this worked also pretty well.