如何在Visual Studio中使自动换行尊重缩进? [英] How to make word wrap respect indentation in Visual Studio?

查看:346
本文介绍了如何在Visual Studio中使自动换行尊重缩进?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio具有自动换行功能,但令人沮丧的是它忽略了行缩进,使文本难以阅读.其他文本编辑器(Notepad ++,Sublime Text)可模拟换行的缩进,使代码更易于阅读

Visual Studio has a word wrap feature, but frustratingly it ignores line indents, making the text hard to read. Other text editors (Notepad++, Sublime Text) simulate the indentation of wrapped lines, making code easier to read

如何使Visual Studio 2012智能地换行?聪明吗?

How can I make Visual Studio 2012 wrap lines intelligently? Smartly?

在记事本++中,啤酒"的包装与控制台一致显示

See in Notepad++, 'of beer' is wrapped appearing in line with Console

与Visual Studio一样,一瓶啤酒"突出到缩进处,使得代码形状难以阅读.

Where as in Visual Studio, 'bottles of beer' juts out into the indentation, making the code shape hard to read.

推荐答案

好消息:在Visual Studio 2013中,自动换行会适当考虑缩进!

Good news: In Visual Studio 2013, word wrap properly respects indents!

但是,它还有许多其他问题(例如,按Home/End键).请在

However there's a number of remaining issues with it (eg. around the Home/End keys). Please vote at https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/5574507-fix-behaviour-of-home-end-keys-when-word-wrap-is-e

A,这不可能.可以通过 http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3285423-wrap-lines-intelligently-simulating-indents- .请投票!

Alas, it's not possible. Bug to the Visual Studio developers at http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3285423-wrap-lines-intelligently-simulating-indents- . Please vote for it!

这篇关于如何在Visual Studio中使自动换行尊重缩进?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆