Skip to main content
Removed unnecessary statement
Source Link

There is a variable called typescript-indent-level that, by default is set to 4. For Spacemacs specifically, you can change the value of this variable by directly setting it in your dotspacemacs/user-config function like so:

(defun dotspacemacs/user-config ()
  (setq-default typescript-indent-level 2))

As a Spacemacs user myself I'm not fully aware of the standard Emacs ways of customizing variables, but there are other options as well such as M-x customize.

There is a variable called typescript-indent-level that, by default is set to 4. For Spacemacs specifically, you can change the value of this variable by directly setting it in your dotspacemacs/user-config function like so:

(defun dotspacemacs/user-config ()
  (setq-default typescript-indent-level 2))

As a Spacemacs user myself I'm not fully aware of the standard Emacs ways of customizing variables, but there are other options as well such as M-x customize.

There is a variable called typescript-indent-level that, by default is set to 4. For Spacemacs specifically, you can change the value of this variable by directly setting it in your dotspacemacs/user-config function like so:

(defun dotspacemacs/user-config ()
  (setq-default typescript-indent-level 2))
Source Link

There is a variable called typescript-indent-level that, by default is set to 4. For Spacemacs specifically, you can change the value of this variable by directly setting it in your dotspacemacs/user-config function like so:

(defun dotspacemacs/user-config ()
  (setq-default typescript-indent-level 2))

As a Spacemacs user myself I'm not fully aware of the standard Emacs ways of customizing variables, but there are other options as well such as M-x customize.