Skip to content

Refactoring LaTEX code: renaming commands #4048

@francoisschwarzentruber

Description

Describe the feature and the current behavior/state

The idea would be to have a safe renaming feature of predefine commands.

  • Move the cursor under a predefined command for instance \formula
  • Press F2
  • Rename the command
  • The system opens a dialog box to give a new name
  • If there is a conflict (an existing command with the same name), the dialog box informs the user and makes that the renaming is not possible.
  • If no conflict, by clicking on the rename button, Texstudio will search and replace in order to renaming the command.

Who will benefit with this feature?

Any user using predefined commands.

Any Other info

We could imagine the same for reordering arguments of commands etc. The same for custom environments.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions