How many spaces is a tab in Java, Rust, C+,, Python, C#, Powershell, Golang, etc.
A tab is not made out of spaces. It is a tab, whether in Java, Python, Rust, or generic text file editing. It is represented by a single Unicode character, U+0009.
It does not generally mean “insert this many spaces here” either. It means “put the cursor at the next closest tab stop in the line”. What that means exactly depends on the context. On an old typewriter I had, a tab key would advance the roller to the next column that was a multiple of 10

That is pretty much the same function as the tab character does.
Just for reference, modern text editors have their tab stops set to either every 4 or every 8 characters. That doesn’t mean that 1 tab = 4/8 spaces, that means that putting in a tab will align the cursor with the next multiple of 4/8 columns

In mainstream IDEs you can set the tab key to insert a desired number of spaces instead of a tab character.
The concept of tab independent of space is rarely used these days. In any case, what the character represents is decoupled from what the key does is decoupled from what the screen shows.
In many IDEs, the tab character inserts the required number of spaces to advance to the next tab line. This is often a default.
I imagine it’s a compromise between tab loving extremists and space advocates. The ideal whitespace character is a subject of intense debate among programmers.
Source: Quora
- TOP 3 Keyboard Shortcuts for Python IDEs (for beginners)by Pavlo Sydorenko, Ph.D. (Programming on Medium) on June 26, 2022 at 7:59 am
If you are new to Python, learning these keyboard shortcuts will save you a lot of time when working with Python in IDEs and code editors.Continue reading on Medium »
- What is web development,How get started with web development?by Umairsabirjutt (Programming on Medium) on June 26, 2022 at 7:54 am
Web development refers in general to the tasks associated with developing websites for hosting via intranet or internet. The web…Continue reading on Medium »
- Transferring Media Assets to Your Customer and Partners to AWS Cloudby Roman Ceresnak, PhD (Programming on Medium) on June 26, 2022 at 7:26 am
The whole world contains lots of information, media, pictures, and different kinds of information. In the following articles, I create a…Continue reading on CodeX »
- Python chapter 3: Tuples in Pythonby Dilip Kashyap (Programming on Medium) on June 26, 2022 at 7:06 am
Hello friends,Continue reading on Level Up Coding »
- Getting started as a backend developer: A beginner’s guideby Abdulbaki Suraj (Programming on Medium) on June 26, 2022 at 7:02 am
Getting started in anything these days is usually hard for beginners than people actually realize. With a huge number of resources on the…Continue reading on Medium »
- GitHub : Private Article Reader- Read any articles in without trackers and in a standard format.by /u/ketan_ip (programming) on June 26, 2022 at 6:58 am
submitted by /u/ketan_ip [link] [comments]
- Introduction and Detail about the JWT Authentication and Authorizationby Jaydeep Patil (Programming on Medium) on June 26, 2022 at 6:43 am
We will discuss Authentication and Authorization using JWT Token and different Cryptographic Algorithms and Techniques. So, we look at the…Continue reading on Medium »
- Coding forces you to understand the problemby /u/swizec (programming) on June 26, 2022 at 6:37 am
submitted by /u/swizec [link] [comments]
- I have generated a new RedwoodJS project. IMO Redwood packages the best of the JS ecosystem into a ready-to-deploy framework. They also have some cool swag.by /u/Nice_Score_7552 (programming) on June 26, 2022 at 6:33 am
submitted by /u/Nice_Score_7552 [link] [comments]
- Thonny is an Ideal IDE for Teaching Python Programming in Schools - It's FOSSby /u/aivarannamaa (programming) on June 26, 2022 at 6:33 am
submitted by /u/aivarannamaa [link] [comments]
- "Google" programmers. How one idiot hired a couple more idiotsby /u/tungustein (programming) on June 26, 2022 at 6:27 am
submitted by /u/tungustein [link] [comments]
- Exploring Kubernetes Deployment Strategies: Recreateby MyHistoryFeed (Programming on Medium) on June 26, 2022 at 6:22 am
The recreate Kubernetes deployment strategy entails terminating all running instances of version A and then recreating them with version B.Continue reading on Medium »
- How I Lost All My Money? Trading vs Investing #Shorts #youtubepartnerby Ali Solanki (Programming on Medium) on June 26, 2022 at 6:21 am
Continue reading on Medium »
- QualityScaler update 2.2 - deeplearning image/video upscaler app for Windowsby /u/jangystudio (programming) on June 26, 2022 at 5:59 am
submitted by /u/jangystudio [link] [comments]
- 7 Lesser-Known VS Code Shortcuts to Speed Up your Development (with GIF Demos)by Tapajyoti Bose (Programming on Medium) on June 26, 2022 at 5:53 am
Want to take your VS Code skills to the next level? Look no further, this article will show you 7 shortcuts that will make you a VS Code…Continue reading on Medium »
- What the Edge Function?!?by Awais Khatab (Programming on Medium) on June 26, 2022 at 5:52 am
Edge Functions… it sounds sexy, your grandma won’t know what it is, and you probably won’t either, yet… That’s okay, I’m here to somewhat…Continue reading on Medium »
- Why I still recommend Juliaby /u/koavf (programming) on June 26, 2022 at 2:57 am
submitted by /u/koavf [link] [comments]
- SQLite extension to query Excel (.xlsx, .xls, .ods) files as virtual tablesby /u/x2bool (programming) on June 26, 2022 at 1:49 am
submitted by /u/x2bool [link] [comments]
- Making a Link Extractor In Pythonby /u/Arth_K (programming) on June 26, 2022 at 1:43 am
submitted by /u/Arth_K [link] [comments]
- An Unfortunate Experience with Rustby /u/Uncaffeinated (programming) on June 25, 2022 at 11:57 pm
submitted by /u/Uncaffeinated [link] [comments]
- Todd Furmanski - Making "Dragon's Descent," a Roguelike Action Game for the Atari 2600by /u/r_retrohacking_mod2 (programming) on June 25, 2022 at 11:30 pm
submitted by /u/r_retrohacking_mod2 [link] [comments]
- Fixing the two bugs that result in Super Mario Bros' infamous World -1by /u/PlNG (programming) on June 25, 2022 at 10:40 pm
submitted by /u/PlNG [link] [comments]
- Mixing Templates, Auto-Run & the Time dimension to teach programming to new generationsby /u/mrpro1a1 (programming) on June 25, 2022 at 9:28 pm
submitted by /u/mrpro1a1 [link] [comments]
- 1. Once more into the breach: a new Common Lisp 3D graphics projectby /u/Kaveh808 (programming) on June 25, 2022 at 6:35 pm
submitted by /u/Kaveh808 [link] [comments]
- Dangit, Git!?!by /u/speckz (programming) on June 25, 2022 at 4:31 pm
submitted by /u/speckz [link] [comments]
- Italy declares Google Analytics illegalby /u/DonutAccomplished422 (programming) on June 25, 2022 at 4:01 pm
submitted by /u/DonutAccomplished422 [link] [comments]
- Bitburner: a programming-based incremental gameby /u/LowerArc1000 (programming) on June 25, 2022 at 3:10 pm
submitted by /u/LowerArc1000 [link] [comments]
- WinFsp 2022+ARM64by /u/billziss (programming) on June 25, 2022 at 12:47 pm
submitted by /u/billziss [link] [comments]
- Papers on GitHub Copilot, copyright law, questions of ownership for AI-generated code, and legal impacts for GitHub authors who use a GNU or other copyleft license for their worksby /u/JRepin (programming) on June 25, 2022 at 10:52 am
submitted by /u/JRepin [link] [comments]
- WebAssembly Everywhereby /u/pmz (programming) on June 25, 2022 at 7:54 am
submitted by /u/pmz [link] [comments]
- GitHub Copilot and open source launderingby /u/hedgepigdaniel (programming) on June 25, 2022 at 5:51 am
submitted by /u/hedgepigdaniel [link] [comments]
- Amazon launches CodeWhisperer, a GitHub Copilot-like AI pair programming toolby /u/arrftr (programming) on June 25, 2022 at 2:04 am
submitted by /u/arrftr [link] [comments]
- What is pruning a neural network? A guide on github. Feedback is welcome!by /u/IntelligentHat1657 (programming) on June 24, 2022 at 10:18 pm
submitted by /u/IntelligentHat1657 [link] [comments]
- Modern Software Developmentby /u/speckz (programming) on June 24, 2022 at 7:23 pm
submitted by /u/speckz [link] [comments]
- OCaml Programming: Correct and Efficient and Beautifulby /u/iamkeyur (programming) on June 24, 2022 at 3:19 pm
submitted by /u/iamkeyur [link] [comments]