是否可以在Pycharm中映射选项卡以生成4个空格。如果是这样的话? [英] Is it possible in Pycharm to map a tab to produce 4 spaces. If so how?

查看:124
本文介绍了是否可以在Pycharm中映射选项卡以生成4个空格。如果是这样的话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用IDE。我想知道它是否可能,正如我在vim中使用imap所做的那样,以便当我按下tab 4时,在编辑器中生成空格。如果可以的话,请指出我该怎么做。我对键符号并不是很熟悉,所以请尽可能明确;我在设置下探查了键盘图,但这很令人困惑。

this is my first time using an IDE. I was wondering if its possible, as I've done in vim with imap, to make it so that when I press tab 4 spaces are produced in the editor. If this is possible, please point me how to do it. I'm not super familiar with key symbols so please be as explicit a possible; I poked around the keymap under settings but it was pretty confusing.

推荐答案

您可以在Pycharm中自定义Tab大小。转到首选项 - >编辑器 - >代码样式 - > Python。

You can customize the Tab size in Pycharm. Goto Preference --> Editor --> Code Style --> Python.

这篇关于是否可以在Pycharm中映射选项卡以生成4个空格。如果是这样的话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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