开发者

ReSharper: how to NOT insert spaces after keywords, or completely disable formatting

When I type, 开发者_开发技巧for example, 'internal' and press Enter on autocomplete list item, a space is inserted automatically after the word i.e.: 'internal '. Is there a way to disable this behaviour?

Or, even better, maybe there is a way to disable completely code formatting "part" of ReSharper? I do like its code inspection features and tools, but I think it's a bad idea to get used to its autoformatting features.

Edit:

To be clear, by autoformatting here, I mean not whole document formatting (which is indeed a good feature), but rather autocomplete part of it, i.e. then you select 'Close' in autocomplete ReSharper produces 'Close();\n' while standard VS output will be 'Close'.


This happens because ReSharper intellisense is enabled by default. If you switch it to VS intellisense (ReSharper - Options - Enviroment - Intellisense), this behavior will disappear (and all ReSharper intellisense improvements too).


You can try looking under the highlighted areas in the screenshot and see if that helps you. I don't know any other way to disable auto completion.

FWIW, I agree with Holstebroe and Roger that you should find auto complete settings that work for you and your team instead of disabling them. Common code formatting is really nice to have.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜