Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robot syntax doesn't respect 4 spaces option in VS Code #46

Open
Soinisi opened this issue Mar 20, 2019 · 1 comment
Open

Robot syntax doesn't respect 4 spaces option in VS Code #46

Soinisi opened this issue Mar 20, 2019 · 1 comment
Labels

Comments

@Soinisi
Copy link

Soinisi commented Mar 20, 2019

Describe the bug
Is it a bug or a feature that even if tab option is 4 spaces, the plugin dynamically removes spaces when pressing tab? Tab can be anything from 1 to 4 spaces.

To Reproduce
Steps to reproduce the behavior:

  1. Create empty file
  2. Write *** Variables ***
  3. Write [Documentation]
  4. Press tab
  5. Result one space

Expected behavior
Tab should add minimum of 4 spaces like other editors.

Environment (please complete the following information):

  • VSCode version: 1.32.3
  • Extension version: 2.5.0
  • OS: [e.g. Linux/Mac/Win] : Windows

Additional context
I have tried to change global and [robot] tab settings to no avail

@Soinisi Soinisi added the bug label Mar 20, 2019
@Mohorelien
Copy link

Mohorelien commented Dec 12, 2019

Might be overkill, but I have added this key binding to fix this issue:

{
        "key": "tab",
        "command": "type",
        "args": {"text": "    " },
        "when": "editorTextFocus && editorLangId == robot && !editorHasSelection",
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants