Hi,
I have a small problem with the auto indent of VAX, as it doesn't really fit it my personal style. It there a possibility to modify customize that?
Here's a sample, this is how I like to my code:
class ClientUseSkillMessage : public Message
{
private:
long skillid;
public:
ClientUseSkillMessage(long _skillid) :
Message(kMessageClientUseSkill),
skillid(_skillid)
{
}
ClientUseSkillMessage() :
Message(kMessageClientUseSkill)
{
}
const long SkillID() const
{
return skillid;
}
void Compress(Compressor& data) const
{
data << skillid;
}
bool Decompress(Decompressor& data)
{
data >> skillid;
return true;
}
};
The private/public/proteced is intendent with one tab. The subparameter of the class constructor are intented too and the : is at the end of the line.
Here's what VAX produces when I type continuesly:
class ServerUseSkillMessage : public Message
{
private:
long skillid;
bool success;
public:
ServerUseSkillMessage(long _skillid, bool _success) :
Message(kMessageServerUseSkill),
skillid(_skillid),
success(_success)
{
}
ServerUseSkillMessage() :
Message(kMessageServerUseSkill)
{
}
const long SkillID() const
{
return skillid;
}
const bool Success() const
{
return success;
}
void Compress(Compressor& data)
{
data << skillid;
data << success;
}
bool Decompress(Decompressor& data)
{
data >> skillid;
data >> success;
return true;
}
};
Really annoying is the fact, that everything after the : is indented by two whitespaces (it's hard to see here, but the white spaces are there) and I don't understand why. It is actually more work to reformat the whole class than disabling VAX for the time (but then I don't have the auto completition feature, which helps with virtual functions).
And one more problem is, that when I e.g. copy and paste something with my style, VAX applies it's crappy style over it.
Help, please 