Skip to content
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

[Bug] indent in "source view / edit file" #24437

Open
TimerWolf opened this issue Apr 30, 2023 · 4 comments
Open

[Bug] indent in "source view / edit file" #24437

TimerWolf opened this issue Apr 30, 2023 · 4 comments
Labels

Comments

@TimerWolf
Copy link

Description

I do not know for sure what this is called indent?, but if you have used "tab" and not "space" between the lines in the source code you only see the different in "source view" and not when you "edit" the file and i think it would be nice if you could see it in both to easier identify it.

Gitea Version

1.19.2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Gitea

Git Version

1.19.2

Operating System

Linux

How are you running Gitea?

This time it was with "gitea-1.19.2-linux-amd64"

Database

MySQL

@silverwind
Copy link
Member

silverwind commented Apr 30, 2023

You mean make tabs vs. spaces visible in the editor? I think we could enable this option:

https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IEditorOptions.html#renderWhitespace

We can set it to the selection option, so whitespace characters will be visible during selection only, which is the default in VSCode as well.

@silverwind
Copy link
Member

#24444 will fix it.

@TimerWolf
Copy link
Author

Not sure we talk about the same thing, when you "edit" the file the editor do not show the tab has been used instead of whitespace for unknown reason...

But in the source view it's a lot more clear that just that one line uses tab and instead of whitespace and breaks the coding style...

The reason why i took this up was that i think it stupid to hide it as it will be a lot more harder to detect if it is hidden....

A switch maybe to change the way it shows the source in the editor?

@silverwind
Copy link
Member

You mean the width of the tab being different in both view (4 in one, 8 in another)? Yes, that is something we're planning to fix as well. See #9071 for some discussion.

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

No branches or pull requests

2 participants