Tapatalk

Artistic Style modification

Artistic Style modification

3
NewbieNewbie
3

    Apr 19, 2007#1

    Hi.

    I'd like to find out how to tweak the artistic style setting so that my c++ code is formatted a tiny bit differently.

    Can someone point me in the right direction? Right now I see indents seem to be happening at length 2, though the minimum I put in was 4.

    thanks
    Jeff

    6,685587
    Grand MasterGrand Master
    6,685587

      Apr 20, 2007#2

      It was the first time that I played with the Artistic Style tool today. So I first read the Artistic Style Formatter dialog help page and also the homepage of Artistic Style.

      After first run I have seen that I can see the command line used by UltraEdit when calling Artistic Style in the prompt area (left side) in the status bar at bottom of the UltraEdit window. So I looked on the homepage of Artistic Style what all of them means and the last one -s# was the most interesting one because it specifies the indent spaces. But where does this value come from because it cannot be specified in the dialog?

      The help page of UltraEdit for the dialog does not explain it - I will report that omission to IDM support (help was updated).

      But I quickly thought in the right direction. The indent spaces value used is the value of Indent Spaces specified in the configuration dialog at Editor - Word Wrap / Tab Settings for the current file extension which was c on my tests with UE v13.00a.

      See for example the forum topic extension based tab settings problem how to specify the tab stop value(s) and the number of indent spaces individually for files based on their extensions.
      Best regards from an UC/UE/UES for Windows user from Austria