Is your feature request related to a problem? Please describe.
A problem is that the current core.format options do not support all IDE build environments. These 4 Java files will check for the preferences based on the type of project being worked on (defaulting to use spaces), but if you aren't using one of those project types, spaces will be used. These formatter options are used by the auto completions for code.
Describe the solution you'd like
Have a new checkbox on the completions preferences page to allow for an override to use tabs instead of spaces for indentation. When checked, this will override the format options that were determined/found and use tabs for auto completion code.
Describe alternatives you've considered
Have currently replaced the format options to use tabs instead of spaces by default. This means though manually updating the JAR file for each update. Alternatively it means trying to find/replace after finishing in a file 4 spaces for a tab character.
Additional context
The 4 format java files under com.microsoft.copilot.eclipse.core.format that use "space" instead of "tab" as default. Not sure if the code in these if fully functional (as in Java and workspace preferences, the tab policy is tabs only and "use spaces instead of tabs" is unchecked). Do to the way these formatter options are read, it ends up using spaces instead of tabs for new code blocks for auto-completions. For those that use tabs for indentation, not having an override option means a lot of fixing of code afterwards or mismatched indentation in files.
Is your feature request related to a problem? Please describe.
A problem is that the current core.format options do not support all IDE build environments. These 4 Java files will check for the preferences based on the type of project being worked on (defaulting to use spaces), but if you aren't using one of those project types, spaces will be used. These formatter options are used by the auto completions for code.
Describe the solution you'd like
Have a new checkbox on the completions preferences page to allow for an override to use tabs instead of spaces for indentation. When checked, this will override the format options that were determined/found and use tabs for auto completion code.
Describe alternatives you've considered
Have currently replaced the format options to use tabs instead of spaces by default. This means though manually updating the JAR file for each update. Alternatively it means trying to find/replace after finishing in a file 4 spaces for a tab character.
Additional context
The 4 format java files under com.microsoft.copilot.eclipse.core.format that use "space" instead of "tab" as default. Not sure if the code in these if fully functional (as in Java and workspace preferences, the tab policy is tabs only and "use spaces instead of tabs" is unchecked). Do to the way these formatter options are read, it ends up using spaces instead of tabs for new code blocks for auto-completions. For those that use tabs for indentation, not having an override option means a lot of fixing of code afterwards or mismatched indentation in files.