How to make various level heading entires in TOC in same vertical line without editing of TOC

By default, we get the various level heading entires in TOC being offset relative to each other as shown in image 1.

image 1

I want to generate them in same vertical line without manually editing the table.

Entries in TOC are formatted by Contents n paragraph styles. They correspond to Heading n in text.

Modify Indents & Spacing Before Text distance in these paragraph styles to your liking.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

I can’t see my answer anymore on which you also commented, does accepting else’s answer deletes one’s own? It’s possible that I deleted it by mistake and don’t remember.

You probably deleted it. I was surprised by the removal. I thought you considered it as non relevant after my comment discouraging to follow your track.

I might have deleted mistakenly. But it’s good that I asked which removed possible misunderstanding!

But I had it in clipboard too so I’m posting:
It can be done by right clicking on TOC and going to ‘Edit index’>styles and assigning a different style to a level from the right side list using the arrow button that is between the two lists.
But this is discouraged by @ajlittoz as it’s like manual overriding and doesn’t depict different outline levels and can be misleading therefore, from what I understood. Though I found it easier for casual tasks.

More precisely: styling is a kind of meta markup of text. It conveys a lot of information about the semantics of textand help automated tools to “understand” the document structure. Replacing the Contents n family for TOC entries results in loss of significance unless the replacement styles are reserved for TOC formatting (in which case the TOC can still be recognised as TOC based only on the styles).

Too many users consider styles as formatting directives. They are rather annotations by author about text significance and importance. Formatting attributes come as a consequence of style. E.g. an italic word could be an emphasis stress or a foreign language mark. They should be highlighted by two different styles though the visual result is the same. With two styles, you can change separately emphasis from foreign (e.g. to change all foreign words to red without disturbing the emphasis).

Thanks for the knowledge, it makes sense to follow this.