Location of .editorconfig

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
User avatar
Drxenos
Posts: 210
Joined: Mon Jul 07, 2003 8:38 pm

Location of .editorconfig

Post by Drxenos »

Where does TexPad put the ".editorconfig" file? I can't seem to find it.

Thanks.
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

It doesn't put .editorconfig anywhere. It doesn't support its use.

It stores its configuration in these files:

Code: Select all

%USERPROFILE%\AppData\Roaming\Helios\TextPad\8\
  ConfigState.xml
  GUIState.xml
User avatar
Drxenos
Posts: 210
Joined: Mon Jul 07, 2003 8:38 pm

Post by Drxenos »

What do you mean it doesn't support it? They why does it have an option for it?
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Ah. I looked around and found

Configure | Preferences | Editor | Enable .editorconfig

Good question. Sorry, I don't know.
User avatar
Drxenos
Posts: 210
Joined: Mon Jul 07, 2003 8:38 pm

Post by Drxenos »

That's OK. Thanks anyway!
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

.editconfig files aren't for storing TextPad configuration. It's more the opposite: a way to set up TextPad and other editors in a certain way for, say, a particular project.

The help window for the Preferences page that ben_josephs referred to includes a link to the EditorConfig specifications. There's also a more user-friendly version here.

As an example, if you have an .editorconfig file like this in a folder:

Code: Select all

# Sample editorconfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
then every file you open in TextPad in or below that folder will have the properties:
  • Convert new tabs to spaces
  • Indent size: 4
  • Strip trailing spaces from lines when saving
    etc.
Support for .editorconfig files was added in v8.8.0 (1-Jun-2021).
User avatar
Drxenos
Posts: 210
Joined: Mon Jul 07, 2003 8:38 pm

Post by Drxenos »

I know that. I just (wrongly) assumed TextPad would be able to generate an .editorconfig from it's own configuration.

Thanks anyway.
Post Reply