LeetCode-Feedback / LeetCode-Feedback

668 stars 327 forks source link

[BUG] - Code Editor on Chrome doesn't support Tab size of 2. #24905

Open Yellow-Rice opened 3 days ago

Yellow-Rice commented 3 days ago

LeetCode Username

user3517H

Problem Number, Title, and Link

https://leetcode.com/problems/kth-largest-sum-in-a-binary-tree/

Bug Category

Editorial

Bug Description

I wasn't able to find a way to report code editor bugs. If this is not the correct channel, please redirect me to the right one.

I configured my code editor with a tab size of two, dark mode enabled, using Python 3. When I am working on problem https://leetcode.com/problems/kth-largest-sum-in-a-binary-tree/, tabs and reverse tabs didn't honor my configuration and are always of size 4. I've also attached a screen shot for my editor. It should have a vertical line to indicate the indentation every two spaces. But the width between two vertical lines are actually 4.

Device: MacBook Pro (M1 Pro ) OS: 14.7 (23H124) Chrome Version: 128.0.6613.138 (Official Build) (arm64)

Screenshots:

image image

Language Used for Code

Python/Python3

Code used for Submit/Run operation

No response

Expected behavior

When indent or reverse indent, the tab size should follow my configuration. In my case, it should be 2.

Screenshots

image

Additional context

No response

exalate-issue-sync[bot] commented 3 days ago

LeetCode Support commented: Hello user3517H,

Thank you for reaching out and providing detailed information about the issue you're experiencing with the code editor tab size configuration. It appears that the problem could be related to browser-specific settings, particularly since the issue is not present when you use Safari but persists on Chrome.

To better assist you, could you please check if there are any browser extensions or settings that might be overriding the tab configuration in Chrome? Additionally, clearing the browser cache or checking for any updates could also help resolve such issues.

If the problem continues, consider attempting to replicate the issue on another device with similar settings to determine if it's device-specific. Should the issue persist despite these checks, please let us know along with any additional screenshots or specific settings you've configured. This information would be instrumental in aiding us to reproduce and investigate the issue further.

Thank you for your patience and understanding.

Best regards,

LeetCode Support Team