When I select all my code in Android Studio, then I apply code formatting for example for the piece of code below:
public ArrayList<RuleData> listOfActivePromotions()
{
try
{
return RuleData.getRuleData();
}
catch (RepositoryException ex)
{
ExceptionLogging.getInstance().logException(TAG, ex); Log.e(this.TAG, "error", ex); return new ArrayList<>();
}
}
My code ends up being indented and overlapping other code that it becomes difficult to read. I have set my code settings as follows:
I am not sure why it is wrapping the separate code lines like that, this only started recently. I have tried changing all the setting and still the issue persists
Delete your idea file and re-import project it will help to solve your issue
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.