Change tab spacing to 2

0 votes
asked Sep 11, 2015 in To be sorted by anonymous

I use \t to allign fields with a structure say in an object defination.

Is tere a way I can changed the dispaly to allign by 2 instead of the default to 4.

(My settings in Eclipse are set to 2)


3 Answers

0 votes
answered Sep 11, 2015 by jeroentbt (380 points)

A bit of a workaround but have a look at, it should agressively overwrite and apply settings like this in your editor.

commented Sep 12, 2015 by anonymous
Thanks for the quick reply.
Didn't work for me. I put this file in the same folder as eclipse.ini
Also put it in the same folder as the code.

# EditorConfig is awesome:

# top-most EditorConfig file
root = true

# 2 space indentation
indent_style = space
indent_size = 2
commented Sep 12, 2015 by jeroentbt (380 points)
When I read the answer below, I think I completely misunderstood your question. I thought it was about the source file being represented with too much spaces, did not think you were talking about spacing in plantuml's output...

So please disregard my answer (although editorconfig really is a great project! :))
commented Sep 12, 2015 by anonymous
No problem, appreciate your response.
0 votes
answered Sep 12, 2015 by plantuml (160,280 points)


Could post a simple example of the diagram you are using ?

My guess is that you are using something like that:

object foo {


Which give:

Is this the case ?

In that case, the size of \t is hardcoded to 8 in PlantUML (and not 4).

But we may add a skinparam attribute to let people change it to another value.

Is this what you are looking for ?



commented Sep 12, 2015 by anonymous
Yes, this is why I am trying.
Object Obj2{
uint32_t abc

skinparam would be nice.
0 votes
answered Sep 16, 2015 by plantuml (160,280 points)

In the last beta,
we have added a skinparam tabSize.


skinparam tabSize 2
object foo {

Does is work for you ?

commented Nov 27, 2017 by adipriyantobpn (100 points)
Hi there..
I'm new in this forum and also new user for PlantUML.
Thanks again for such great UML generation project.

Actually I've already searched for documentations or articles about indentation, but got no luck.
Nearest topic I've found is in this question.
If I'm wrong, please remind me.

Currently I need to indent some class properties & method arguments that contains long list of multilevel array values with some array key in them.

Can I set the indentations with "space" for each different levels of array value depth?
Actually I prefer "space" instead of "tab" character, as the former seems clearer than the latter.

A simple case is like this

class foo {
+operatorTypes : array = [
        "<" => [
            0 => "a",
            1 => "b"
        ">" => [
            0 => "c",
            1 => "e"

Thanks again for your feedback.