C++ text editor: Add indentation option to private:, protected: or public: definitions. - by WaldemarH

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 794163 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 7/16/2013 1:39:11 PM
Access Restriction Public


First I have to say that VS is a great product and it's joy using it. But as every application it has it's corner cases and this is one of those... small but annoying.

What is the problem?
As today a programer has to be a wizards of handling different coding styles, I decided that I'll create one that will work on most of my work. Now it has a great benefit that all the code looks that same in all the languages, but the downside is that sometimes autoformating has to be disabled.

Now if you would try to write the code below.. as every line contains the access right the line gets constanly moved to the column 0 and it gets annoying fixing this all the time.

So adding an indentation option or adding an option to completely disable autoformating would be really wonderful.

Best regards
Waldemar Haszlakiewicz

class CRuntime_Base				//this class has to be inherited by every module that can execute a runtime script
	public: CRuntime_Base( const wchar_t* pName, const int version, const CRuntimeView view );
	public: virtual ~CRuntime_Base( );

	public: const std::wstring Get_Name() const { return m_Name; };
	public: const int Get_Version() const { return m_Version; };
	public: const CRuntimeView Get_View() const { return m_View; };

	protected: const std::wstring		m_Name;
	protected: const int				m_Version;
	protected: const CRuntimeView		m_View;

	public: virtual bool Execute() = 0;

	public: virtual bool Deserialize( std::wstring ) = 0;
	public: virtual std::wstring Serialize() = 0;
Sign in to post a comment.
Posted by Deon [MSFT] on 4/29/2014 at 12:29 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Oleg [MSFT] on 7/30/2013 at 9:51 AM
Dear Waldemar,

Thank you for taking the time to provide your suggestion. We are currently reviewing your reported issue in the context of all the issues reported to us. If your proposed feature is accepted, we will add the functionality to Visual Studio in one of our future releases.

Thank you for helping make Visual Studio a better product!


Oleg Kharitonov
Visual C++
Posted by Helen [MSFT] on 7/16/2013 at 11:08 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Macy [MSFT] on 7/16/2013 at 1:52 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)