Vs 代码自动缩进不适用于 python [英] Vs code auto indenting not working for python

查看:39
本文介绍了Vs 代码自动缩进不适用于 python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是visual studio代码的新手,刚从sublime text 3切换过来.我正在写一个简单的if语句,当我写else时:就像那样,在ST3上它会将else移到if下,但这不会发生在 vscode 上.我已经尝试了所有方法并四处寻找,但似乎不起作用.为什么?还是 vscode 真的缺少这个基本的基本功能?

I’m new to visual studio code, just switched from sublime text 3. I was writing a simple if statement and when I write else: like that, on ST3 it would move the else to under if but this doesn’t happen with vscode. I’ve tried everything and looked everywhere but doesn’t seem to work. Any ideas of why? Or does vscode really lack this basic fundamental feature?

推荐答案

这是一个 已知问题,需要自定义缩进提供程序的重要实现一>.

This is a known issue that requires a non-trivial implementation of a custom indentation provider.

这篇关于Vs 代码自动缩进不适用于 python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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