Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Patch for auto cancel indent when type 'public:' or 'protected:' or 'private:'

<< < (2/4) > >>

danselmi:
I believe this code fits better somewhere in
--- Code: ---void cbEditor::OnEditorCharAdded(wxScintillaEvent& event)
--- End code ---
since all other indent related code is there too.
Additionally it should check the currently set lexer and needs to be configurable.

Seronis:
Isnt this already handled by Astyle ?

ptDev:

--- Quote from: Seronis on March 25, 2010, 02:06:02 am ---Isnt this already handled by Astyle ?

--- End quote ---

AStyle reformats already written code. This patch would make the behaviour apply (optionally) while typing the code. I wouldn't mind having the option, I should say.

Seronis:

--- Quote from: ptDev on March 25, 2010, 08:18:04 am ---
--- Quote from: Seronis on March 25, 2010, 02:06:02 am ---Isnt this already handled by Astyle ?

--- End quote ---
AStyle reformats already written code. This patch would make the behaviour apply (optionally) while typing the code. I wouldn't mind having the option, I should say.

--- End quote ---
Gotcha.  In that case shouldnt any of these options be set to inherit the users astyle preferences and let that be the point of configuration ?

MortenMacFly:

--- Quote from: Seronis on March 26, 2010, 12:26:55 am ---Gotcha.  In that case shouldnt any of these options be set to inherit the users astyle preferences and let that be the point of configuration ?

--- End quote ---
As the astyle plugin is... erm... a plugin and therefore might not be available / disabled / installed you cannot rely on these settings.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version