Nedko
Nedko

Reputation: 506

Achieving tab-like navigation with spaces indentation

I am collaborating on a Python project, using PyCharm. It is space indented and I have been using only tab indentation so far. However, after switching to space indentation I am no longer able to navigate efficiently. To navigate one indentation level back, I need to press left arrow four times now, which I find very frustrating. Note that I mean navigation through an indentation level at a time (4 spaces) and not going to the beginning of the line.

My questions are:

I hope you can help.

Upvotes: 2

Views: 60

Answers (2)

Dinko Pehar
Dinko Pehar

Reputation: 6061

To toggle between tabs and spaces:

On the main menu, choose Edit | Convert Indents , and then choose To Spaces or To Tabs respectively.

When you clone, download or in any other way start working on a project, you can convert spaces to tabs and stick with yours navigation. When you are done, you can convert tabs back to spaces so you don't break yours team coding habits.

Upvotes: 0

Zaher88abd
Zaher88abd

Reputation: 464

For changing the key of indention I think you could change that from File -> Setting -> Keymap then search for indent selection.

Upvotes: 0

Related Questions