I have been using vs-code version 1.72.2. And I have mistakenly hidden the run button on the top right corner of the vs-code editor, while working on a python file. Now, I cannot find a way to unhide it. Is there any way to do this? Please, help me out.
You have a few options but it depends on your particular configuration and preferences.
Each of the following options is just a different way to accomplish the same thing. The first option should be all you need.
First Option:
- Right click the
...
button in the top right corner and you should see a list of UI components you can hide and show. Click your component to toggle its visibility. If 'Run or Debug...' isn't available, it's because VS Code does not recognize your project, language or the currently selected file as runnable or debuggable. That's a separate issue from toggling the buttons visibility and not covered here.
Note: The following two options will only work if the first option worked. They are just different ways to do the same thing.
Second Option:
- Right click the
...
button in the top right corner and you might have the option to 'Reset Menu'. This will effectively cause all components to reset to their visible state. This option isn't visible if all components are already visible. If your curious and want to see the 'Reset Menu' option, unselect one of your components. Right click on the...
button again and now you should see the option. Selecting it will make all listed components visible.
Third Option:
- If visible, you can right click the
Split Editor
button or any other 'Action' button that shows up at top/right. If available, click the 'Reset Menu' option. Again, availability depends on your current configuration.
Source: https://code.visualstudio.com/updates/v1_72#_hide-actions-from-tool-bars
Some extensions may cause this. The problem can be solved by disabling the extension that causes the problem, or it can be made visible again from the settings depending on the programming language used.
For example C/C++:
Go to File > Preferences > Settings and type "Debug Shortcut" in the search bar above and check the "C_Cpp: Debug Shortcut" box in the results.
Go to view, click run, and left-click on the run and debug icon on the left side. Next, click on "Keep Run and Debug" and it will stay. i hope this is what you meant
Step-1 Click with two finger ( if you are using touch pad) ( right click if your are using mouse) on the split editor which places right top beside the 3 dots
Step-2 you have a option (run and debug ) click on that , then your code runner button will appear
© 2022 - 2024 — McMap. All rights reserved.