Open PranavMathur opened 5 years ago
You are thinking in terms of vim's autocommands but Notepad 2e will never offer such flexibility. However, there are two possible solutions to this problem although neither is perfect:
.py
files which launches Notepad2e.exe /f c:\my-python-config.ini
. The /f
switch sets the location of the INI file. For other file types, the default INI file will be used, with your choice of tabs. Read more about INI location in the README.
/f
does File > New and then Save as a .py
- it will still use tabs.py
files from Explorer, you can add a .py
template to the Explorer's New
menu and then open the just created blank filePlease let me know if this is a Scintilla thing and not a Notepad2 thing. Thank you!
It's certainly not Scintilla's - Scintilla is just a formatted text manager, it's not handling who and how sets various settings.
I use tabs for most indentation in most programs, but I have to use spaces when coding in Python. When I'm using Notepad2e to quickly edit a .py, I always have to remember to select the "Insert Tabs as Spaces" option, and then to turn it off when I open a non-.py file.
Currently, the option is stored in the .ini file as "TabsAsSpaces". This option could be kept as the default option, and per-filetype options could be stored with the per-filetype syntax schemes.
Please let me know if this is a Scintilla thing and not a Notepad2 thing. Thank you!