gpt-3.5-turbo-0301· OpenAI WildChat-4.8M (AI2)
use tab instead of spaces only in python. i have an init.lua file in my ~/.config/nvim
- User
use tab instead of spaces only in python. i have an init.lua file in my ~/.config/nvim
- Assistant
As an AI language model, I don't have access to your file system. However, here's how you can use tab instead of spaces only in Python:
- Open your Python file in your preferred text editor.
- Find the settings for tab size and indentation.
- Change the tab size to your desired value (usually 4 spaces).
- Set the indentation to use tabs instead of spaces.
- Save the changes to the file.
If you're using Neovim, you can add the following line to your init.lua file:
vim.cmd('set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab')This will set the tab size to 4 and make sure indentations use tabs instead of spaces.