How to reconfigure Emmet bindings in WebStorm? - webstorm

I am using WebStorm, which comes pre-installed with Emmet. However, I cannot utilize any of the keyboard shortcuts, such as Ctrl + /, because I am using a Swedish keyboard layout.
My question is two-fold: Where do I find the keyboard shortcuts for Emmet, and how do I change them?

Related

How do I find out what font a text control in a C++ dialog is using? Or, what is this font?

I want to be able to create mock-ups of dialogs for UI design documents. I would like to use the same font that current dialogs are using. The project uses C++ and MFC, developed using Visual Studio 2019 on a Win10 box. Where can I look to find out what font is being used for a particular text control?
Or, perhaps more simply, can you tell me what fonts are used on this little sample?

How can I enable automatic code suggestions in eclipse for c++?

I've decided to use eclipse as my primary IDE for c++ coding but I can't seem to figure out the automatic autocomplete. When I press ctrl + space it shows them just fine but not when I'm typing normally. I tried browsing through the settings but in content assist setting under auto-activation it only has checkboxes for ., ::, and -> triggers and not for letters, numbers and parentheses. I tried browsing around the web and all the solutions were for the java version of the eclipse IDE, not the c++ one.
I do not think it is possible with the C++ editor. As you described, automatic trigger for content assist only works after typing ., -> or :: (if enabled) and there is no way to make it work for other combinations. See the dialog below:
As you mentioned, Ctrl + Space can always be used to manually launch the tool, but I understand it can become annoying.
So to answer your question: No, it is not possible (for C++).

Not able to select Menu items in NASPT Exerciser using pywinauto

I am using pywinauto to automate NASPT Exerciser tool.
app.IntelNASPerformanceToolkitExerciser.PhotoAlbum.Click().
to click photo album button,
app.IntelNASPerformanceToolkitExerciser.all.Click()
to click all. It's not selecting all buttons.
app.IntelNASPerformanceToolkitExerciser.MenuSelect("Configure->NASPT Tool")
It is throwing error saying can't select Menu to this object.
Is there any other way to achieve above problem?
Can anyone help about this?
This is .NET application. pywinauto has very limited support of .NET controls. So you need to use Windows UI Automation API for such toolbar. Precisely InvokePattern should help with pressing toolbar button.
Or you may try to click button by hard coded coordinates like that:
app.IntelNASPerformanceToolkitExerciser.Children()[54].ClickInput(coords=(300, 10))
This hard-coding way may be better than dealing with quite complicated UI Automation API.
BTW, you may get pywinauto clone with .NET programmatic names support. Just download it as zip and run python setup.py install.
With that mod you can code so:
app.IntelNASPerformanceToolkitExerciser.toolStrip.ClickInput(coords=(300, 10))
I've just checked it. I think hard-coded coordinates is OK here because the software is end-of-lifed and will not be changed. There are not so many unsupported .NET controls.

How to auto-generate settings/options dialog box?

Using Visual Studio 2010 C++ with MFC. The number of configurable settings in my application is slowly creeping up. I managed to design a settings class where adding a single line will add a setting to the program and support reading/writing that setting to my ini file. However, I still need to go into my gui editor and edit the options dialog box, moving text boxes around, aligning labels etc. which is kind of a pain.
How would I autogenerate my options dialog box such that I could give it a data structure and it could generate the option interface for me? It's okay if it's something like a list box. I'm thinking something like the the Visual Studio properties dialog box which has the look of something that's programmatically generated:
I'm just trying to get a conceptual overview of what controls would be best and how to piece it together. Of course if there is a link to a web page discussing this that would be great.
You want the CMFCPropertyGridCtrl class. It was introduced in one of the MFC updates, but I'm not sure whether or not they come pre-installed with Visual Studio 2010; you may need to install something extra.

Stopping Windows Mobile 6.5 tab reordering

I have a C++ Visual Studio 2008 Windows Mobile 6.5 application that uses a tab control. I've noticed that depending on how careful you are with the stylus, when using the tab control you can accidentally re-order the tabs. It's difficult to do deliberately, but it's very easy to do when you're not trying. I assume this is a new "feature" of Windows Mobile 6.5 as it doesn't happen in Windows Mobile 6.1 with the same code.
Is there a window style or something I can set that will lock the tab order such that people don't accidentally re-arrange them?
Also, is there an MSDN page that describes this behavior and how it is supposed to work? I've looked, but have come up empty.
Thanks,
PaulH
Turns out it is a feature of the WTL tab class I was using. I ended up subclassing it and removing the tab reordering feature.
-PaulH