GitHub copilot keeps spreading python my code out. #151147
Replies: 6 comments 1 reply
-
I just turned off all the settings besides auto completion and it's still doing it but only when it's active everything else keeps telling me I will check your Python well it doesn't do it with Python it only does it when GitHub copilot is active |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
README.md |
Beta Was this translation helpful? Give feedback.
-
You can disable Copilot briefly just for that block using a comment. #copilot: disable |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Hi @riUlrich 👋 Totally get your frustration — you're right, GitHub Copilot sometimes tries to "help" with formatting, especially if it's picking up on inconsistent indentation or line length cues in your file or project. A few things that might help: ✅ Fix #1: Use a Code Formatter pip install black ✅ Fix #2: Adjust Your Editor Settings Going to Settings → Search for format on save Uncheck Editor: Format On Save Optionally, install a formatter extension and control formatting manually ✅ Fix #3: Copilot Tweaks One last thing I might add as well, is that sometimes depending on the IDE you're using may change the way your code is formatted as well. For example in VS Code, having an extension called "Prettier", "cleans" up your code and formats it for better reading. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
def get_example_options():
return {
"id04t6": "something random and unimportant",
"id04t7": "something random and unimportant",
}
it changes it to this,
def get_example_options():
return {
"id04t6":
"something random and unimportant",
"id04t7":
"something random and unimportant",
}
and I know it's GitHub copilot 'cause as soon as I disabled it stop doing it.
I'm not at all a coder, I was fairly able to put this together using various AI.
Beta Was this translation helpful? Give feedback.
All reactions