Skip to content

Is there any config to control the deletion of empty lines under functions and code blocks for code formatting #2985

@PhoenixZeng

Description

@PhoenixZeng

Is there any configuration to control the deletion of blank lines in the code formatting function?

3c45c76d8aac14826956bdd5830b9fda
image

I have reviewed the document pointed to in the editor settings and all formatting options for the following emmy, but have not found the options to control this logic

https://github.com/CppCXY/EmmyLuaCodeStyle/blob/master/lua.template.editorconfig

the line_space_after_function_statement looks like But after test, no effect was found

By the way, is there any annotation or other feature to mark that files in specific files or folders are not allowed to be formatted
This is useful for enabling automatic formatting when saving

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions