Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What R# setting is reformatting this line?

VS2010 / R#5.1

I have this "line" of code:

With.Mocks(_mocks).Expecting(() => {
    _fooServiceMock.Expect(x => x.FooMethod()).Return(fooMockData);
}).Verify(() => {

});

I perform a R# code cleanup, which changes the code as follows:

With.Mocks(_mocks).Expecting(() => { _fooServiceMock.Expect(x => x.FooMethod()).Return(fooMockData); }).Verify(() => { });

That is, it reformats the statement such that it appears entirely on one line.

What IDE/R# setting is responsible for this? What can I change to preserve my line breaks when I perform a R# code cleanup?

I would have thought 'R# / Options / Languages / C# / Formatting Style / Line Breaks and Wrapping / Preserve Existing Formatting / Keep existing line breaks', but that doesn't seem to make any difference.

like image 237
lance Avatar asked Sep 21 '10 12:09

lance


People also ask

For what R is used for?

R offers a wide variety of statistics-related libraries and provides a favorable environment for statistical computing and design. In addition, the R programming language gets used by many quantitative analysts as a programming tool since it's useful for data importing and cleaning.

What is R and what is R?

uncountable noun. R & R refers to time that members of the armed forces spend relaxing, away from their usual duties. R & R is an abbreviation for `rest and recuperation.

Why \r is used in Python?

Python's statistical packages are less powerful. R's statistical packages are highly powerful. Python is mainly used when the data analysis needs to be integrated with web applications. R is generally used when the data analysis task requires standalone computation(analysis) and processing.

What R programming means?

The "R" name is derived from the first letter of the names of its two developers, Ross Ihaka and Robert Gentleman, who were associated with the University of Auckland at the time.


1 Answers

It's Place simple anonymous method on single line option in Line Breaks and Wrapping category.

like image 177
Julien Hoarau Avatar answered Sep 29 '22 05:09

Julien Hoarau