Enable the use of formatter off and on tags in Eclipse
This commit enables the use of // @formatter:off and // @formatter:on to surround lines of code that should not be formatted. It also adds a code template that can be used to quickly wrap the selected lines of text with the off and on comments. Closes gh-5050
This commit is contained in:
@@ -223,6 +223,10 @@
|
||||
xsi:type="setup:PreferenceTask"
|
||||
key="/instance/org.eclipse.jdt.ui/smartPaste"
|
||||
value="true"/>
|
||||
<setupTask
|
||||
xsi:type="setup:PreferenceTask"
|
||||
key="/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.text.custom_templates"
|
||||
value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="java" deleted="false" description="Surround code with formatter off and formatter on tags" enabled="true" name="noformat">// @formatter:off
$${cursor} $${line_selection}
// @formatter:on</template></templates>"/>
|
||||
</setupTask>
|
||||
<setupTask
|
||||
xsi:type="setup:CompoundTask"
|
||||
|
||||
Reference in New Issue
Block a user