Skip to content

Refactor LaTEX code: cleaning the code #4049

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

Open
francoisschwarzentruber opened this issue Apr 16, 2025 · 0 comments
Open

Refactor LaTEX code: cleaning the code #4049

francoisschwarzentruber opened this issue Apr 16, 2025 · 0 comments

Comments

@francoisschwarzentruber

Describe the feature and the current behavior/state

Usually, when we are disorganised (like me), we end up with a long and nasty LaTEX code. We could have a specific icon in margin saying that a package/custom command/custom environment is unused.

For instance in front of \usepackage{tikz} we could have a specific sign indicated that the current project is not using tikz. I remember that in vscode the equivalent in some programming languages is a sort of lamp💡 (like an idea of cleaning the code!).

We could then click on the sign that opens a menu to delete the line or delete all unused packages.

Sometimes, we declare a command (\newcommand{\formula}{\phi)) after its use (especially when we move some LaTEX code. Texstudio could help to move also the command declaration.

Who will benefit with this feature?

Any disorganized user.

Any Other info

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

No branches or pull requests

2 participants