How can I un-hide the run button on the top right corner of the vs-code?
Asked Answered
O

4

6

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.

Osmond answered 22/10, 2022 at 18:7 Comment(1)
Try right-clicking on some nearby icon or the 3 dots and see if there is an option to re-enable it.Trustbuster
T
4

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.

enter image description 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.

Image showing menu

Source: https://code.visualstudio.com/updates/v1_72#_hide-actions-from-tool-bars

Thermobarograph answered 18/11, 2022 at 4:13 Comment(0)
R
0

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.

Roughrider answered 20/11, 2023 at 23:50 Comment(0)
G
0

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

Gardiner answered 21/2 at 16:52 Comment(0)
B
0

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

Biracial answered 16/8 at 15:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.