You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Only VCS changed text option, the plugin doesn't seem to format code that are between unmodified code excerpts. I want to format only new or modified code.
Expected result
In this example, I set the tabulation.size to 1 after the commit.
Actual result
But line 21 don't have tabulation.size equal to 1 after the formatting using Ctrl+Alt+L.
But if I change the String variable name from one to newOne (i.e, the code between the new code), Intellij change the lateral VCS bar color, and accepts the format as expected.
I'm not sure if I'm missing some of the plugin or Intellij configuration.
What steps will reproduce the issue?
Extract the zip below, load the file named myCodeStyle.xml in the Eclipse Code Formatter plugin > Eclipse workspace/project folder or config file, and select the profile named Profile 120. myCodeStyle.zip
private String myFunction() {
String newOne = "1";
System.out.println(newOne);
String two = "2";
String result = newOne;
return result;
}
private void otherFunction() {
System.out.println("it works here");
}
IDE and OS
IntelliJ IDEA 2021.1.3 (Community Edition)
Build #IC-211.7628.21, built on June 30, 2021
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.8.0-59-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 976M
Cores: 8
Non-Bundled Plugins: EclipseCodeFormatter (20.8.203.000.0-Eclipse_2020-06-JavaOnly), com.dubreuia (2.2.0), org.jetbrains.kotlin (211-1.5.10-release-909-IJ7142.45)
Kotlin: 211-1.5.10-release-909-IJ7142.45
Current Desktop: ubuntu:GNOME
In this example, I'm not using the Save Actions plugin com.dubreuia (2.2.0), although that's I'm aiming to.
Thanks! 🙂
The text was updated successfully, but these errors were encountered:
Problem
When using the
Only VCS changed text
option, the plugin doesn't seem to format code that are between unmodified code excerpts. I want to format only new or modified code.Expected result
In this example, I set the
tabulation.size
to1
after the commit.Actual result
But line 21 don't have
tabulation.size
equal to1
after the formatting usingCtrl+Alt+L
.But if I change the String variable name from
one
tonewOne
(i.e, the code between the new code), Intellij change the lateral VCS bar color, and accepts the format as expected.I'm not sure if I'm missing some of the plugin or Intellij configuration.
What steps will reproduce the issue?
Extract the zip below, load the file named
myCodeStyle.xml
in the Eclipse Code Formatter plugin > Eclipse workspace/project folder or config file, and select the profile named Profile 120.myCodeStyle.zip
Here are the contents of myCodeStyle.xml.
Code used in the images above:
IDE and OS
IntelliJ IDEA 2021.1.3 (Community Edition)
Build #IC-211.7628.21, built on June 30, 2021
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.8.0-59-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 976M
Cores: 8
Non-Bundled Plugins: EclipseCodeFormatter (20.8.203.000.0-Eclipse_2020-06-JavaOnly), com.dubreuia (2.2.0), org.jetbrains.kotlin (211-1.5.10-release-909-IJ7142.45)
Kotlin: 211-1.5.10-release-909-IJ7142.45
Current Desktop: ubuntu:GNOME
In this example, I'm not using the Save Actions plugin
com.dubreuia (2.2.0)
, although that's I'm aiming to.Thanks! 🙂
The text was updated successfully, but these errors were encountered: