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

Request Auto-Indent option to choose indent style #821

Closed
oliezekat opened this issue Aug 28, 2015 · 1 comment
Closed

Request Auto-Indent option to choose indent style #821

oliezekat opened this issue Aug 28, 2015 · 1 comment

Comments

@oliezekat
Copy link

@oliezekat oliezekat commented Aug 28, 2015

Auto-Intend option apply "Smart Indent" feature to some languages (C, Java, PHP, Javascript) since Notepad++ 6.7

This feature promote only K&R indent style and become a nightmare if we prefer another style like Allman or Whitesmiths.
I had explained how to solve this problem with NppAutoIndent plugin at end of the issue #296

I submit that Auto-Indent feature include an optional option to choose between "Previous line" (Allman), "Block Indent" (Whitesmiths), or "Smart Indent" (K&R) methods like NppAutoIndent plugin.

Nb: Notepad++ applied "Previous line" method before 6.7 release.

It's could be great that Notepad++ detect indent style of current document and switch Auto-Indent to right method.

Nb: more indent styles exists, see https://en.wikipedia.org/wiki/Indent_style

My personal skill is to use Whitesmiths style if I create JS or PHP file, Allman style for CSS file, but I apply K&R (or other) style while I edit a third party file. I'm most aware than Notepad++ ^^

@oliezekat oliezekat changed the title Request Auto-Indent option to choose default style Request Auto-Indent option to choose indent style Aug 28, 2015
@MetaChuh

This comment has been minimized.

Copy link

@MetaChuh MetaChuh commented Apr 9, 2019

we are closing this issue due to its age and multiple newer notepad++ versions since it was filed.

please update your notepad++ to the latest version Notepad++ 7.6.6.
if your issue persists, and it is still of relevance to you, please feel free to file a new issue.

thank you for your help and best regards.


general notes:

please close your issues as soon as you are satisfied, to help
keeping the notepad++ issue tracker clean.

when creating a new issue, please provide all information as shown at the issue template.
your notepad++ debug info is part of the minimum requirements.
(? > Debug Info... > Copy debug info into clipboard).

please also conduct a search at the issue tracker beforehand, to check if a similar issue
already exists.

for general questions, or if it is not sure, whether your issue is directly related to
the notepad++ source code, please visit us at the notepad++ community forum, and
search if related topics exists. you are welcome to post either at similar
topics, or to create a new topic at Help Wanted or General Discussion.

                        Click here to visit the Notepad++ Community Forum                         

@MetaChuh MetaChuh closed this Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.