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

[XML] Preferences page for XML for spaces and tabs #872

Open
LorenzoBettini opened this issue Sep 19, 2022 · 7 comments
Open

[XML] Preferences page for XML for spaces and tabs #872

LorenzoBettini opened this issue Sep 19, 2022 · 7 comments

Comments

@LorenzoBettini
Copy link

This is a follow-up of #139 to ask for a preference page to specify whether to use spaces or tabs for the XML editor (possibly by allowing to specify also how many spaces to insert for indentation).

As requested by @angelozerr in #139 (comment) I opened this new issue.

Thanks in advance

@angelozerr
Copy link
Contributor

Thanks @LorenzoBettini for reporting this issue. To support this issue it requires some changes on Eclipse Platform Text. The first step is to give the capability to custom spaces/tabs with .editorconfig.

After that I will work on this issue but it will requires some contribution to Eclipse Platform Text.

@LorenzoBettini
Copy link
Author

@angelozerr, thank you for your effort. In the meantime, is there a way to have two spaces in the XML file while still having tabs in the Java editor? I didn't find any satisfactory solution at the moment, but maybe I'm missing something...

@angelozerr
Copy link
Contributor

Java Editor can customize that, no?

image

@LorenzoBettini
Copy link
Author

But that requires defining a new custom profile, which, especially across workspaces, is a few lengthy operation..

@angelozerr
Copy link
Contributor

But that requires defining a new custom profile, which, especially across workspaces, is a few lengthy operation..

I agree but for the moment it is the only solution. Please wait for .editorconfig support at first.

@LorenzoBettini
Copy link
Author

Actually, for the moment, I'm using a "replace all" of a tab with two spaces... ;)

@angelozerr
Copy link
Contributor

Wow we need really provide .editorconfig support.

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

No branches or pull requests

2 participants