python - 在 Visual Studio 中将空格显示为选项卡

标签 python visual-studio visual-studio-2013 spaces tabstop

我需要使用空格而不是制表符,不幸的是我无法解释 Visual Studio 2013 将每 4 个空格显示为制表符停止位。 示例:

def hello():
....for i in range(3):
........print('Hello world!')

但我需要类似的东西

def hello():
...|for i in range(3):
...|...|print('Hello world!')

我的意思是我不需要完全垂直的行字符,只是以某种方式区分缩进。

顺便说一句,Geany IDE 非常出色。

编辑: Visual Studio 确实显示了空格,但不显示垂直线。

最佳答案

看起来我已经找到了解决方案:您需要在 VS 中安装“Indent Guides”扩展。 http://visualstudiogallery.msdn.microsoft.com/e792686d-542b-474a-8c55-630980e72c30

关于python - 在 Visual Studio 中将空格显示为选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24419504/

相关文章:

python - 在 Python 中将文本插入 raw_input(以避免读取)的跨平台方法

git - 从 Visual Studio 2017 使用 git 克隆时出现 "Illegal characters in path"

javascript - AngularJS - 使用 $resource 并与 RESTful 数据源交互

visual-studio-2013 - Visual Studio 2013 的 TypeScript 1.3 缺少 SDK 目录 (tsc.exe)

python - Django 定时事件

python - pygame : trying to understand the Sprite class

python - 如何舍入日期时间对象的分钟

c# - 在 Visual Studio 2010 中,在单行 C# 代码中搜索两个字符串

sql - 如何自动将实体模型更改部署到数据库?

c# - Visual Studio 2013 不接受大写 E