blob: 9517e4006e3a8beec0255895aeee652376089416 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
<idea-plugin>
<id>me.laria.code.idea_caseconv</id>
<name>Case conversion</name>
<version>0.6.2</version>
<vendor email="laria@laria.me" url="https://code.laria.me">Laria Chabowski</vendor>
<description><![CDATA[<html>
<p>Convert between cases.</p>
<p>The Plugin provides actions to convert to the following cases:</p>
<ul>
<li>snake_case</li>
<li>dash-case</li>
<li>camelCase</li>
<li>PascalCase</li>
<li>SCREAMING_SNAKE_CASE</li>
<li>UPPER CASE</li>
<li>lower case</li>
<li>fLIP cASE</li>
<li>Title Case</li>
<li>Sentence case</li>
<li>dot.case</li>
</ul>
<p>How to use:</p>
<p>Select the text you want to convert and then invoke the desired action. There are multiple ways to do this:</p>
<ul>
<li>Use the menu bar: The actions of this plugin can be found in “Edit” > “Convert Case”</li>
<li>Use the Find Action feature: Bring up the “Find Action” search dialog (default keyboard shortcut is Ctrl+Shift+A) and type the name of the desired convert action (or type “Convert Case” to see all actions). Tip: This search uses fuzzy matching so you can just type “camcas” for “Convert Case: camelCase”.</li>
<li>Create a keyboard shortcut: Open Settings > Keymap and search for “Convert Case” and create a keyboard shortcut for the desired action.</li>
</ul>
<p>You can configure how newlines should be treated: Go to "Settings" > "Tools" > "Case conversion". The setting "Treat newline as" has these two options:</p>
<dl>
<dt>White space</dt>
<dd>Treat newline like other whitespace (i.e. as a word separator)</dd>
<dt>Record separator</dt>
<dd>Treat newline as a record separator. This converts every line individually</dd>
</dl>
</html>]]></description>
<change-notes><![CDATA[<html>
<dl>
<dt>Version 0.6.2</dt>
<dd>Add <code>Convert case: Sentence case</code> action</dd>
<dt>Version 0.6.1</dt>
<dd>Add a short documentation on how to use the plugin</dd>
<dt>Version 0.6.0</dt>
<dd>Organize Convert case actions into new Edit submenu "Convert case" instead of cluttering up the edit menu</dd>
<dt>Version 0.5.2</dt>
<dd>Add <code>Convert case: dot.case</code> action</dd>
</dl>
</html>]]></change-notes>
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="173.0"/>
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
<depends>com.intellij.modules.lang</depends>
<extensions defaultExtensionNs="com.intellij">
<applicationService serviceImplementation="me.laria.code.idea_caseconv.settings.Settings" />
<applicationConfigurable
parentId="tools"
instance="me.laria.code.idea_caseconv.settings.Configurable"
id="me.laria.code.idea_caseconv.settings.Configurable"
displayName="Case conversion"
/>
</extensions>
<actions>
<group id="me.laria.code.idea_caseconv.convert_case_menu" popup="true" text="Convert Case">
<add-to-group group-id="EditMenu" />
<action id="me.laria.code.idea_caseconv.SnakeCaseAction" class="me.laria.code.idea_caseconv.SnakeCaseAction"
text="Convert Case: snake__case">
</action>
<action id="me.laria.code.idea_caseconv.DashCaseAction" class="me.laria.code.idea_caseconv.DashCaseAction"
text="Convert Case: dash-case">
</action>
<action id="me.laria.code.idea_caseconv.SeparateWordsAction" class="me.laria.code.idea_caseconv.SeparateWordsAction"
text="Convert case: separate words">
</action>
<action id="me.laria.code.idea_caseconv.CamelCaseAction" class="me.laria.code.idea_caseconv.CamelCaseAction"
text="Convert Case: camelCase">
</action>
<action id="me.laria.code.idea_caseconv.PascalCaseAction" class="me.laria.code.idea_caseconv.PascalCaseAction"
text="Convert Case: PascalCase">
</action>
<action id="me.laria.code.idea_caseconv.ScreamingSnakeCaseAction"
class="me.laria.code.idea_caseconv.ScreamingSnakeCaseAction" text="Convert Case: SCREAMING__SNAKE__CASE">
</action>
<action id="me.laria.code.idea_caseconv.UpperCaseAction" class="me.laria.code.idea_caseconv.UpperCaseAction"
text="Convert Case: UPPER CASE">
</action>
<action id="me.laria.code.idea_caseconv.LowerCaseAction" class="me.laria.code.idea_caseconv.LowerCaseAction"
text="Convert Case: lower case">
</action>
<action id="me.laria.code.idea_caseconv.FlipCaseAction" class="me.laria.code.idea_caseconv.FlipCaseAction"
text="Convert Case: fLIP cASE">
</action>
<action id="me.laria.code.idea_caseconv.TitleCaseAction" class="me.laria.code.idea_caseconv.TitleCaseAction"
text="Convert Case: Title Case">
</action>
<action id="me.laria.code.idea_caseconv.SentenceCaseAction" class="me.laria.code.idea_caseconv.SentenceCaseAction"
text="Convert Case: Sentence case">
</action>
<action id="me.laria.code.idea_caseconv.DotCaseAction" class="me.laria.code.idea_caseconv.DotCaseAction"
text="Convert Case: dot.case">
</action>
</group>
</actions>
</idea-plugin>
|