# CodeMirror 6 set indentation unit

**URL:** <https://discuss.codemirror.net/t/codemirror-6-set-indentation-unit/2972>\
**Category:** Uncategorized\
**Created:** [February 27, 2021, 8:18pm UTC](https://discuss.codemirror.net/t/codemirror-6-set-indentation-unit/2972 "2021-02-27T20:18:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bennlich](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/bennlich/32/1254_2.png) [@bennlich](https://discuss.codemirror.net/u/bennlich)\
**Post date:** [May 13, 2021, 5:24am UTC](https://discuss.codemirror.net/t/codemirror-6-set-indentation-unit/2972/4 "2021-05-13T05:24:33Z")

</div>

@larsp @marijn

> You need to add [`indentUnit`](https://codemirror.net/6/docs/ref/#language.indentUnit)`.of(" ")` (four space, which the forum seems to collapse) from `@codemirror/language` to your configuration.

Does “add to my configuration” mean add another extension to my [EditorStateConfig](https://codemirror.net/6/docs/ref/#state.EditorStateConfig)?

If so, where do I get `indentUnit` from? Do I import it from somewhere?

Some places I have tried to find it:

```auto
import {Indentation} from '@codemirror/language'
Indentation.indentUnit

```

```auto
import {LanguageDescription} from '@codemirror/language'
LanguageDescription.indentUnit

```

---

_[View the full topic](https://discuss.codemirror.net/t/codemirror-6-set-indentation-unit/2972)._
