Categories
|
Apache
SmarterEditorProducts: IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio Vendor: Joachim Ansorg IT-Services Email: Website: N/A SourceCode: SmarterEditor_4657.zip Description:
Smarten up the editor with new editor actions.
This plugin makes you more productive in the editor. It supports some frequently used actions with the press of a key. It relies on navigation contexts. A navigation context is defined as:
This plugin saves you from unnecessary caret movements. Supported languages:
Split the current string literal at caret or around selection
Press alt + PLUS / Edit: Smart split. This action splits a string into two parts and positions the
caret between two parts.
For example: the string "abcd" is turned into "a" + "bc" + "d" if "bc" was selected.
Jump to the start of a navigation block
Press ctrl + alt + HOME / Edit: Smart home. This action moves the editor caret to the beginning of
the next parent navigation context.
Jump to the end of a navigation block
Press ctrl + alt + END / Edit: Smart end. This action moves the editor caret to the end of
the next parent navigation context.
Format a navigation block
Press ctrl + alt + shift + F / Edit: Format favourite. This action reformats the next parent
navigation context according to the code style settings. It puts a selection on the reformatted text.
It can be called multiple times to reformat the next parent context.
Select a navigation block
Press ctrl + alt + shift + D / Edit: Select favourite. This action select the next parent
navigation context. It can be called multiple times to select the next parent context.
This is an early release of this plugin. Please vote and provide feedback to help!
8 updates are hidden
show all updates
Recent change notes:Changes in this version:
General usage instructions:Source code repository is at http://code.google.com/p/idea-smartereditor/ . |
||||||||||||||||||||||||||||
Comments:
Move to Code Block Start (Ctrl+[)
Move to Code Block End (Ctrl+])
Move to Code Block Start with Selection (Ctrl+Shift+[)
Move to Code Block End with Selection (Ctrl+Shift+])
etc.
For full list of basic editing features please refer to http://www.jetbrains.com/idea/webhelp/basic-editing.html.
Unfortunately that seems to be only exactly half a solution :-(
IDEA just fails to correctly format while there is still no text in between the two new "+" signs:
My code style has spaces around "+", but IDEA does not insert a space after the second "+".
Don't know if you can work around that. Maybe insert an empty string,
'spl' + '' + 'it'
reformat, then remove the empty string?
Of course, nothing is ever perfect, so here's a small wish:
Could you either evaluate the code style setting when splitting a string or else just reformat the line with string on it.
After splitting a string I get 'spl'+ +'it' with missing spaces.
Jumping to the end of a php block is not possible, as far as I can see. The PHP parser does not provide the necessary items to do this. Feel free to request it from the PHPStorm developers :)
I've got 2 notices:
- split string doesn't work in PhpStorm for php language;
- let's say i have this code:
if ($i == 1) {
// I place cursor here and type Ctrl+Alt+End (go to end block)
echo 1;
} else { // I would like it go here
echo 2;
} // but now it goes here
I.e. it would be nice to take the shortest block if it is possible and go further by next typing Ctrl+Alt+End. Same is true for Ctrl+Alt+Home.