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

Use custom options for formating #8572

Closed
svor opened this issue Feb 2, 2018 · 1 comment
Closed

Use custom options for formating #8572

svor opened this issue Feb 2, 2018 · 1 comment
Assignees
Labels
kind/enhancement A feature request - must adhere to the feature request template. target/branch Indicates that a PR will be merged into a branch other than master.

Comments

@svor
Copy link
Contributor

svor commented Feb 2, 2018

Che has an ability to import custom options for formatting by using this UI:
selection_018
The file with options is the same as Eclipse uses.
So hove it works:

  1. If user chooses Project and import the file it will be imported to projects/projectName/.che/
  2. If user chooses Workspace and import the file it will be imported to projects/.che/

How the algorithm works:

  • Firstly it will check if projects/projectName/.che/che-formatter.xml exists if it is - use it for formatting otherwise
  • Check if projects/.che/che-formatter.xml exists if it is - use it otherwise
  • Use default formatter settings

Now jdt.ls uses only default options for formatting. Need to improve it.

@svor svor added kind/enhancement A feature request - must adhere to the feature request template. team/enterprise target/branch Indicates that a PR will be merged into a branch other than master. labels Feb 2, 2018
@svor
Copy link
Contributor Author

svor commented Feb 2, 2018

It depends on #8557

@svor svor self-assigned this Feb 13, 2018
@svor svor added the status/in-progress This issue has been taken by an engineer and is under active development. label Feb 13, 2018
@svor svor removed the status/in-progress This issue has been taken by an engineer and is under active development. label Feb 20, 2018
@svor svor closed this as completed Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template. target/branch Indicates that a PR will be merged into a branch other than master.
Projects
None yet
Development

No branches or pull requests

3 participants