Skip to content

Cannot get copilot to use 4 spaces to indent Python #422

@kynnjo

Description

@kynnjo

I have run all of the following:

    (setq python-indent-offset 4)
    (add-to-list 'copilot-indentation-alist '(prog-mode 4))
    (add-to-list 'copilot-indentation-alist '(python-mode 4))
    (setq-default indent-tabs-mode nil)

(My tab-width variable is set to 8, and that is where I want to keep it. Since I don't want TABs in my Python code, at all, this setting should not matter.)

To no avail: all the code that Copilot proposes still uses an 8-space indentation.

What else must I do to get Copilot to use 4-spaces/level for indenting Python code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions