Skip to content

Generate @Override on save when applicable #2144

@NatoBoram

Description

@NatoBoram

I want to know when a method is overriding its super class by automatically adding the @Override annotation on save.

Current Result
public String toString() {
	return super.toString();
}
Expected Result
@Override
public String toString() {
	return super.toString();
}
Additional Informations

Example config:

{
	"editor.codeActionsOnSave": {
		"source.generate.finalModifiers": true,
		"source.generate.override": true
	}
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions