How to remove QMenu separators in Qt Designer? - user-interface

I'm using Qt Designer with PyQt. I accidentally created about ten separators and cannot figure out how to delete them. They show up in the Object Inspector, but delete or right click has no useful effect. How can I delete them?

You can right-click the separator itself to remove it:

Related

Can I make Visual Studio automatically show corresponding header or implementation file in vertical split?

I'm new to Visual Studio, but have used several other IDE's over the years. I'm stunned by the poor out-of-the-box management of files, filters and "presentation" of coding, and now trying to find if there's a way to customize it the way I've found to be optimal for me.
First off, when programming C++, I'd like for the IDE to use a vertically split automatic view. Dragging and dropping a view to the right side giving me a "static" split is no problem, but that file will stay there untouched until I open another file while in this active view.
What I want is to make it so that when I click a .cpp-file in the explorer, it will show up in the left view - and its corresponding header-file will show in the right view. Likewise, when clicking a header-file, I'd want it to be presented in the right view and the corresponding .cpp-file to show in the left view. If either doesn't exist, just show a blank screen on its side.
When ctrl-clicking a class name, I'd want both the cpp and header-file to be presented, cpp on left and header on right.
Is this not possible?
The second thing that grinds my gears is the solution explorer. I simply don't understand the value of the filter system. I surely do not want every single .cpp file lined up alphabetically under each other, and every single header-file alphabetically another place. I want the explorer to replicate the folder structure as-is. And let me create a file in "src/my_folder/" by right-clicking "my_folder" and add->new item.
I've found that I can click "Switch views" and select "Folder view", but doing this seems to also invalidate the "Solution" and any configurations etc. The solution is literally gone, and the Build/Run-command switches to "Current document" and is completely detached from the project itself.
The closest option I've found is to be in "Solution view" and select "Show all files". The problem is that this shows literally all files and folders, including "output-folders", "hidden" and completely irrelevant files and folders that I don't want here. And I'm naturally not able to "hide" these files, as this is an option to "show all files".
Xcode on Mac has both of these features (and more snacks) pretty flawlessly implemented, and is my all-time favorite IDE per now.
Is there any way to replicate these features in Visual Studio?

is there a way to edit all reference highlights in visual studio?

Usually in vs2015 and vs2017 (at least) when you select a word, automatically all the references of the word get selected. I would like to know if there is a way to edit all the occurrences using a keyboard shortcut (placing multiple cursors without the searching dialog), as an example, let's say that in the image below i would like to replace the "Some" with "Very".
Try right-clicking your reference, then choosing "Rename..."
There is at least one plug-in, Multi Edit Mode, but you can just modify the function name and use the light bulb/quick actions (Ctrl .) to rename/refactor all references to the function.

How do I remove 'open with code' from my context menu for Visual Studio Code?

I have uninstalled Visual Studio Code, but the "open with code" option is still in my context menu when I right click a folder.
If I install VS Code again, it will keep the old option and adds a second entry which opens VS code.
This link will help you to modify registry.
Most of the menu items that used for all files and folders can be found at one of these keys:
HKEY_CLASSES_ROOT\*\shell
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers
HKEY_CLASSES_ROOT\AllFileSystemObjects\ShellEx
I used ShellMenuView to find the offending records (there were several) and optionally disable them. You can then right click and select properties on the "Open with code" rows to find the registry paths. With that info I could delete the relevant keys from the registry manually. One was HKEY_CLASSES_ROOT\directory\shell\Ticino\Command but there were others.
Old question, but I got here searching for those exact terms.
You may also find right click options here:
HKEY_CLASSES_ROOT\Directory\Background\shell
HKEY_CLASSES_ROOT\Directory\shell\
You can also move them to shift+right click as per this answer: https://superuser.com/a/1332589

Remove unwanted code in Visual Studio 2010?

When I'm creating a GUI of Windows Forms in Visual Studio, I sometimes happens to double click on a component and get some auto generated code. To remove this unwanted code, I read somewhere, but I can't remember where, to remove this code you shouldn't delete it, it should be done in some other way to prevent future errors. How do I remove this unwanted code in Visual Studio the right way?
Normally, I simply delete the code and nothing bad come out of it. At worse, when you try to build, you'll get an error in the designer.cs saying some code is not found. Simply delete that and everything will work fine.
You can also use Ctrl+Z when you double-click, but it will delete the component you double-clicked on and you'll have to add it again to your form.
AFAIK, the answer is NO. Unless there is some specific add-ins from Microsoft (Which I am not aware off) which enables it.
So, You will have to manually delete the unnecessary code which have been auto generated.
Control-Z - it will remove the event handler registration from the YourForm.designer.cs file and also the method from YourForm.cs file.
A warning box will come up as soon as you press Control-Z, just click yes.
Just remove it from the XAML code. For example, if you double click a button, search for Click="button1_Click" in your XAML and delete it.
If you created a Windows Forms project, go to Solution Explorer and open file file Form.Designer.cs and from function InitializeComponent() delete this line:
this.button1.Click += new System.EventHandler(this.button1_Click);

C# menustrip designer

I'm not sure when this happened but when I was trying to edit a menustrip in my program (in the VS designer), I noticed that the menu items had to be grouped or merged. Like:
File Edit Format Insert ...
Instead of being able to click each menu item and add sub-items to them in the designer, they all were grouped together so I couldn't edit the menu items separately, it's quite painful.
I couldn't find any properties related to this, so how could I ungroup the menu items in the designer?
Nevermind, it turns out the designer became weird. When I wanted to add an event to the main menustrip, nothing even happened. Restarting VS seemed to have fixed it. Still quite odd.

Resources