09-Tools/Common/3.2-Code_cleanup_full_cleanup.cs [1:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namespace JetBrains.ReSharper.Koans.Tools.Common
{
// Code cleanup
//
// Cleanup the code according to your style
//
// Ctrl+E, Ctrl+C (VS)
//
//
// Silent cleanup:
// Ctrl+E, Ctrl+F
public class FullCleanup
{
// 1. Full cleanup
// Invoke Code Cleanup
// Select Full Cleanup profile
// Click ok
// Note whitespace all cleaned up
public void BadlySpacedMethod(string options )
{
}
// Note that content split over multiple lines is not changed
public
void
MultilineValuesNotMoved( ) { }
// Note that redundancies are removed (including usings at top of file)
private string name = "Stuff";
public void ReferencingThis()
{
this.name = "blah";
}
public void UsesVar()
{
// Note that var usage is made consistent
var fruit = "banana";
string vegetable = "potato";
}
public void ReferencesAreShortened()
{
var x = 42;
// Note that references are shortened
System.Diagnostics.Debug.Assert(x == 42);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
localized/ja/09-Tools/Common/3.2-Code_cleanup_full_cleanup.cs [1:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namespace JetBrains.ReSharper.Koans.Tools.Common
{
// Code cleanup
//
// Cleanup the code according to your style
//
// Ctrl+E, Ctrl+C (VS)
//
//
// Silent cleanup:
// Ctrl+E, Ctrl+F
public class FullCleanup
{
// 1. Full cleanup
// Invoke Code Cleanup
// Select Full Cleanup profile
// Click ok
// Note whitespace all cleaned up
public void BadlySpacedMethod(string options )
{
}
// Note that content split over multiple lines is not changed
public
void
MultilineValuesNotMoved( ) { }
// Note that redundancies are removed (including usings at top of file)
private string name = "Stuff";
public void ReferencingThis()
{
this.name = "blah";
}
public void UsesVar()
{
// Note that var usage is made consistent
var fruit = "banana";
string vegetable = "potato";
}
public void ReferencesAreShortened()
{
var x = 42;
// Note that references are shortened
System.Diagnostics.Debug.Assert(x == 42);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -