Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Post History
MWE translate() square(); Problem I'd like to set the number of spaces per indent in scad-mode to 2. When I press tab on the second line in the MWE, it should result in: translate() ...
#2: Post edited
- # MWE
- ```scad
- translate()
- square();
- ```
- # Problem
- I'd like to set the number of spaces per indent in `scad-mode` to `2`.
- When I press tab on the second line in the MWE, it should result in:
- ```scad
- translate()
- square();
- ```
- # Tried
- Tried setting `tab-width`, `c-basic-offset`, `standard-indent` using `customize-variable`.
I also tried [this answer](https://stackoverflow.com/a/3985306/4682839), changing `text-mode` to `scad-mode`.- # Notes
- I am using spacemacs.
- # MWE
- ```scad
- translate()
- square();
- ```
- # Problem
- I'd like to set the number of spaces per indent in `scad-mode` to `2`.
- When I press tab on the second line in the MWE, it should result in:
- ```scad
- translate()
- square();
- ```
- # Tried
- Tried setting `tab-width`, `c-basic-offset`, `standard-indent` using `customize-variable`.
- I also tried [this answer](https://stackoverflow.com/a/3985306/4682839), changing `text-mode` to `scad-mode` and putting it in my `dotspacemacs/user-init`[]().
- # Notes
- I am using spacemacs.
#1: Initial revision
Change indent width in scad-mode
# MWE ```scad translate() square(); ``` # Problem I'd like to set the number of spaces per indent in `scad-mode` to `2`. When I press tab on the second line in the MWE, it should result in: ```scad translate() square(); ``` # Tried Tried setting `tab-width`, `c-basic-offset`, `standard-indent` using `customize-variable`. I also tried [this answer](https://stackoverflow.com/a/3985306/4682839), changing `text-mode` to `scad-mode`. # Notes I am using spacemacs.