Source code of the intellij IDEA Realigner plugin
This is a plugin for the various intellij IDEs, working in IDEA, PhpStorm, AppCode, etc.
The Realigner plugin is helpful e.g. to quickly convert lines to comma separated lists and vice versa.
Additionally the plugin adds a tool to wrap a selection, the current line or each of multiple selected lines
with surrounding strings. The wrap tool of the plugin also provides options for escaping single, double quote
and backslash characters and to remove white-space lines from a multi-line selection.
The plugin settings allow for setting up configurations of quickly accessible preconfigured options,
available than in the wrap dialog.
Realigner adds the following editing tools:
- Ctrl+Shift+Alt+J – Joins selected lines by removing linefeeds. Optionally, a “gluing” string can be used as delimiter
- Ctrl+Shift+Alt+L – Splits current line or selection into multiple lines at, before or after an arbitrary delimiter
- Ctrl+Shift+Alt+W – Wraps current line / selection / each of multiple selected lines with an arbitrary prefix and/or postfix string
The icons used in this plugin are part of the Fugue iconset by p.yusukekamiyamane
Copyright 2012 Kay Stenschke
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.