コードの編集効率を上げるPhpStorm WebStormプラグイン – Shifter

JetBrains Plugin Repository :: Shifter
設定されたキーバインドを押すたびに、 true/false after/before public/private/protected という感じにシフトします。コピペが捗りそうです(ダメか)。でもテストコードを書く時は便利でした。

shifter

プリセットで以下のような設定が提供されてました。設定の編集も簡単そうです。

(|htm|html|js|) {
	|array|boolean|element|event|function|number|null|object|string|undefined|
	|alert|prompt|
	|abort|error|load|resize|scroll|unload|
	|button|submit|
	|blur|change|focus|reset|select|submit|
	|class|id|name|type|value|
	|click|dblclick|mousedown|mousemove|mouseover|mouseout|mouseup|
	|h1|h2|h3|h4|
	|indexof|lastindexof|
	|keydown|keypress|keyup|
	|touchstart|touchmove|touchend|touchcancel|
	|resize|scroll|zoom|focus|blur|select|change|submit|reset|
	|<!--|-->|
}
(|css|scss|) {
	|bold|italic|strikethrough|subscript|superscript|underline|
}
(|java|php) {
	|assertFalse|assertTrue|
	|public|private|protected|
	|extends|implements|
}
(|java|) {
	|boolean|byte|char|double|float|int|long|short|string|
}
(|php|phtml|twig|) {
	|array|boolean|float|integer|null|object|resource|string|
	|__dir__|__file__|__namespace__|__class__|__line__|__function__|__method__|__trait__|
	|foreach|endforeach|
	|if|else|endif|
}
(|m|) {
	|int|char|float|double|id|BOOL|long|short|signed|unsigned|
}
(|sql|) {
	|bit|tinyint|bool|boolean|smallint|mediumint|int|integer|bigint|float|double|decimal|dec|
	|char|varchar|binary|varbinary|tinyblob|tinytext|blob|text|mediumblob|mediumtext|longblob|longtext|enum|set|
}
(|*|) {
	|absolute|relative|
	|addition|subtraction|multiplication|division|modulus|negation|concatenation|
	|aif|au|mpeg|mpg|mp3|ra|ram|wav|
	|and|or|xor|not|
	|ascending|descending|
	|ascend|descend|
	|asc|desc|
	|before|after|
	|bit|tinyint|bool|boolean|smallint|mediumint|int|integer|bigint|float|double|decimal|dec|
	|branches|tags|trunk|
	|char|varchar|binary|varbinary|tinyblob|tinytext|blob|text|mediumblob|mediumtext|longblob|longtext|enum|set|
	|en|de|fr|it|
	|enabled|disabled|
	|enable|disable|
	|expand|collapse|
	|file|folder|
	|first|last|
	|first|second|third|fourth|fifth|sixth|seventh|ninth|tenth
	|foo|bar|baz|qux|
	|from|until|
	|gif|jpg|png|
	|horizontal|vertical|
	|increment|decrement|
	|january|february|march|april|mai|june|july|august|september|october|november|december|
	|jan|feb|mar|apr|mai|jun|jul|aug|sep|oct|nov|dec|
	|key|value|
	|list|set|bag|multiset|dictionary|table|tree|sequence|queue|heap|graph|
	|minimum|maximum|
	|min|max|
	|monday|tuesday|wednesday|thursday|friday|saturday|sunday|
	|mon|tue|wed|thu|fri|sat|sun|
	|north|east|south|west|
	|odd|even|
	|ok|cancel|
	|on|off|
	|open|close|
	|padding|margin|
	|pass|fail|
	|positive|negative|
	|prefix|postfix|
	|pre|post|
	|seconds|minutes|hours|day|month|year|
	|shown|hidden|
	|show|hide|
	|small|medium|large|
	|start|end|
	|sum|difference|product|quotient|remainder|opposite|
	|top|right|bottom|left|
	|true|false|
	|undo|redo|
	|username|password|
	|white|lightgray|gray|darkgray|black|red|pink|orange|yellow|green|magenta|cyan|blue|
	|width|height|
	|yes|no|
	|yesterday|today|tomorrow|
	|zero|one|two|three|four|five|six|seven|eight|nine|ten|
}

Comments