Author Topic: Indentation with beautify and smarttab  (Read 2778 times)

Tree

  • Community Member
  • Posts: 79
  • Hero Points: 2
Indentation with beautify and smarttab
« on: July 12, 2012, 09:09:05 PM »
Using java, I *cannot* seem to get the beautify settings or the smarttab key to either a) do the right thing or b) do the same thing as each other.

The particular painful example is functions with annotations (note: introduced to java in 2004) and throws clauses, each defined on their own line. Continuation indent is set to 8.

The Correct formatting is:
Code: [Select]
    @Foo
    public void foo()
            throws FooException {
Beautify formats it this way:
Code: [Select]
    @Foo
            public void foo()
    throws FooException {
and the tab key formats it this way:
Code: [Select]
    @Foo
        public void foo()
    throws FooException {
How can I make them work correctly?

Edit: actually using code escaping to highlight 4 v. 8 character indents.
« Last Edit: July 13, 2012, 12:17:43 AM by Tree »

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Indentation with beautify and smarttab
« Reply #1 on: July 12, 2012, 09:25:50 PM »
The editing/smart-tab code can be hotfixed, I'll take a look at correcting that for the next hotfix or point release.

Fixes for the beautifier will probably have to wait until Java is pulled into the new beautifier framework, the release for that is still TBD.