PS-2022.2.3 <rodude123@rodude123s-yoga7 Update default.xml, KDE copy.xml Create JavaScript.xml

This commit is contained in:
Rohit Pai 2022-11-28 12:20:26 +00:00
parent 1d7c45a5aa
commit a9761ce79b
3 changed files with 27 additions and 0 deletions

View File

@ -1,8 +1,19 @@
<code_scheme name="default" version="173"> <code_scheme name="default" version="173">
<JSCodeStyleSettings version="0">
<option name="FUNCTION_EXPRESSION_BRACE_STYLE" value="2" />
</JSCodeStyleSettings>
<PHPCodeStyleSettings> <PHPCodeStyleSettings>
<option name="ANONYMOUS_BRACE_STYLE" value="2" /> <option name="ANONYMOUS_BRACE_STYLE" value="2" />
<option name="NAMESPACE_BRACE_STYLE" value="2" /> <option name="NAMESPACE_BRACE_STYLE" value="2" />
</PHPCodeStyleSettings> </PHPCodeStyleSettings>
<codeStyleSettings language="JavaScript">
<option name="BRACE_STYLE" value="2" />
<option name="CLASS_BRACE_STYLE" value="2" />
<option name="METHOD_BRACE_STYLE" value="2" />
<option name="ELSE_ON_NEW_LINE" value="true" />
<option name="CATCH_ON_NEW_LINE" value="true" />
<option name="FINALLY_ON_NEW_LINE" value="true" />
</codeStyleSettings>
<codeStyleSettings language="PHP"> <codeStyleSettings language="PHP">
<option name="BRACE_STYLE" value="2" /> <option name="BRACE_STYLE" value="2" />
<option name="LAMBDA_BRACE_STYLE" value="2" /> <option name="LAMBDA_BRACE_STYLE" value="2" />

View File

@ -1,4 +1,8 @@
<keymap version="1" name="KDE copy" parent="Default for KDE"> <keymap version="1" name="KDE copy" parent="Default for KDE">
<action id="CloseContent">
<keyboard-shortcut first-keystroke="ctrl w" />
<keyboard-shortcut first-keystroke="shift ctrl w" />
</action>
<action id="MoveTabDown"> <action id="MoveTabDown">
<keyboard-shortcut first-keystroke="shift alt 2" /> <keyboard-shortcut first-keystroke="shift alt 2" />
</action> </action>

12
templates/JavaScript.xml Normal file
View File

@ -0,0 +1,12 @@
<templateSet group="JavaScript">
<template name="dqs" value="document.querySelector($END$);" description="Query Selector" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="dqsa" value="document.querySelectorAll($END$);&#10;" description="Query Selector All" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
</templateSet>