Bad
<Target Name="MyExampleTarget1">
<SomeMSBuildTaskThatDoesSomethi ngOrOtherWithALongName SomePropertyForTheTaskWithALon gName="value1" AnotherPropertyForTheTaskWithA LongName="value2" />
<MSBuildTaskWithShortNameName AProperty="value3" />
</Target>
The end of the line extends outside the editor window so you can't see the end argument without scolling horizontally.
Bad
<Target Name="MyExampleTarget2">
<SomeMSBuildTaskThatDoesSomethi ngOrOtherWithALongName SomePropertyForTheTaskWithALon gName="value1"
AnotherPropertyForTheTaskWithA LongName="value2" />
<MSBuildTaskWithShortName SomeProperty="value3" />
</Target>
The properties don't line up ("SomeProperty" not aligned with the properties from the previous task) making it a bit harder to read.
Good
<Target Name="MyExampleTarget3">
<SomeMSBuildTaskThatDoesSomethi ngOrOtherWithALongName
SomePropertyForTheTaskWithALon gName="value1"
AnotherPropertyForTheTaskWithA LongName="value2" />
<MSBuildTaskWithShortName
SomeProperty="value3" />
</Target>
Everything almost always fits in the editor window (no need to scroll horizontally) and everything lines up making it easy on the eye.
0 comments:
Post a Comment