Dust file doesn't open in Webstorm IDE 8.0.5 - webstorm

I am trying to open a Dust (.dust) file in WebStorm but it doesn't open. I also installed Dust Plugin from WebStorm Plugin repository but I still can't open a Dust file. I am using WebStorm 8.0.5.
I also tried to open Dust with File -> Open option but I got an error saying "File of this type can't be opened in WebStorm"?
Can someone please help with this?

Now I can open Dust files in WebStorm IDE. All I had to do is add a plugin for Dust support and then update plugin configuration to support *.dust file.
Here are the steps:
On your WebStorm (Mac version), click on Preferences -> Plugins.
Click Browse Repositories, search for Dust. Click Install Plugin on right side frame of Dust Plugin.
Restart your IDE.
Open Preferences -> File Types
Select Dust Templating Language.
Edit Registered Patterns and add *.dust besides *.tl
Apply the changes and now you should be able to open Dust files with proper IDE support for syntax and color highlighting in WebStorm.

Related

A windows app starting and receiving a fil with dag-and-drop c++

I have updated to vs2019.
I have been unable to find out how set up input argument when debugging?
That setup has moved and I can't find it in the menu system, where is it ??
Using c++;
Found it: In the Solution Explorer, Right click on project name to open menu, open Properties, select Configuration Properties, Debugging, Command Arguments

File not formatting after saving in Sublime even when SublimeAstyleformatter's autoformat_on_save is true

So I tried setting up Sublime text editor for programming in cpp on mac , and to use formatter I added the sublimeAstyleformatter plugin and then followed these steps:
Sublime Text > Preferences > Browse packages > SublimeAstyleformatter > SublimeAStyleFormatter.sublime-settings
and inside the file I changed the autoformat_on_save to true and saved the file, but still whenver I save the cpp code, the file is not formatted.
I searched but didn't find any way out, Any help would be appreciated
I understand many windows users are facing the same issue on their systems too. It's probably because you may have installed fresh OS on your system.
so let's get to the solving part.
I am assuming if you are reading this answer you're already done with this step:
Preferences > Browse Packages > SublimeAStyleFormatter > SublimeAStyleFormatter.sublime-settings > "autoformat_on_save": true, (change false to true in line 8)
(If not then do the above step after installing AsytleFormatter package in sublime, and give it a go-to check whether it started working or not)
Now, after this, if your formatter still doesn't work there is a major chance your system doesn't have Microsoft Visual C++ 2010 x64 Redistributable - 10.040219
here is the official link : Microsoft Visual C++ 2010 x64 Redistributable-10.040219
install this software, relaunch sublime editor and you are good to go.
PS: For confirmation do the following (I have added snap for reference Screenshot):
Right-click in the file on your sublime editor
Hover over AStyleFormatter
Now you will be able to see the "format" option (which previously was greyed out)
( Hope it helps to solve the issue!)
I was facing issue with my m1 mac. Now it is resolved. What I did was open sublime text using Rosetta. Some of the sublime packages started working for me as I changed sublime text to open using Rosetta, when I click.
Follow these steps.
Quit Sublime text.
Go to Applications.
Right click on Sublime Text -> Get Info -> Select "Open using Rosetta" checkbox.
Open sublime Text again and check.
This resolved the issue for me. However, in case you do not want to go through Rosetta for sublime, then you can have Clang format Sublime Package installed; that works natively, without going through Rosetta.
Going off the documentation, the key combos on macOS/OSX are CtrlAltF for format current file and ⌘K, ⌘F for format current selection (you had it backwards). The Command Palette commands are called SublimeAStyleFormatter: Format Current File and SublimeAStyleFormatter Format Current Selection.
After looking through the issues on the plugin's Github repo, it looks like the Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) is required for the plugin to work. However, seeing as you're on macOS, I'm not sure what else would be required.

JetBrains WebStorm drag reference to html

I have enabled editor setting "Enable Drag n Drop Functionality". And I want to select a css file from project window and drag into index.html file like this: <link href="app/app.css"/>
But when I drag and drop to index html file not working. It opens file in a new tab.
Such feature was added just recently and is available since WebStorm 2016.2 only (sort of v13).
2016.2 version is not out yet (in EAP stage at the moment -- Early Access Program) but you can try latest EAP build right now if so desired.
You can read more about this feature as well as get the link for EAP build here: https://blog.jetbrains.com/webstorm/2016/05/webstorm-2016-2-eap-162-232/

Run as administrator not showing in start menu

Background:
My C++ application developed by VS2008 and use the VS setup project to create installer for that. After installation it will create two shortcuts to application. one is in user desktop and second one is in start menu. Application(myApp.exe) installed to the Program files directory.
Question: If I right click on the icons in the start menu, there is a option Run as Administrator for most of them. But if I right click on the shortcut that related to my application. It doesn't show Run as Administrator. How to fix this?
Edit: But if i right click on the myApp.exe in the Program files, it shows "Run as Administrator".
Set your embedded manifest to require administrator. On the project property page:
...on the (highlighted) UAC Execution Level, change asInvoker to requireAdministrator. Build your project to embed the new manifest, and it should be ready to do its thing.
Oh -- I didn't think to do it here, but in the Configuration drop-down, you probably want to select All Configurations, instead of the (default) Active configuration that's selected in the screen shot. Gets seriously annoying -- you think you've got things fixed, then you change to "Release" and a bunch of stuff suddenly breaks, and you have to go through figuring out what you'd changed, and edit those changes into the Release configuration as well.
In manifest file there is option "requestedExecutionLevel" and "UIAccess" which will manage it.
I found the answer for this after so much testing and searching. So here I mention it for use of any one.
Windows only shows Run as Administrator in the context menu for that shortcuts those are directly targeting to some exe file.
If you use VS deployment (setup) project to create your installation with desktop and start menu shortcuts. Those shortcuts not targeting to exe (Application.exe) file.
Instead of that shortcuts targeting to application folder (MS office 2007 also same). This is called installation-on-demand and advertisement. Here is the more details.
This will help your application to repair from file missing (pray Google for more).
So we have to disable this feature if you want to target your shortcuts directly to exe file.
For this you can use command prompt or some tool. here is how to do it.
Nirmally windows installer having a exe and a msi.
These setting are stored at at msi generated with setup file.
So You have to alter the file and add the entry DISABLEADVTSHORTCUTS=1 to property table.
Using Command prompt:
msiexec /i <path to your msi> DISABLEADVTSHORTCUTS=1
Using Orca Tool:(Meny other tools also there)
Download Orca tool from here and install it.
Right click your *.msi file and click edit with orca.
Go to property table and add new entry DISABLEADVTSHORTCUTS and value is 1 , save and close.
Now you done.
Install using setup.exe file and check the target of the shortcuts. those are directly target to the exe file in application folder.
Now if you right click on the shortcuts those shows Run as Administrator option in context menu.
Note: Doing this you will gain Run as Administrator but scarify the windows auto repair capability.

Netbeans 7 and XSLT support

Does anyone knows how to enable XSLT support, auto-complete in particular, in Netbeans 7?
Every time I'm opening a new tag within my style, the auto-complete pop-up appears, and shows "downloading...". After few seconds it disappears and that's all.
Regards,
Radek
Answer from here:
https://blogs.oracle.com/geertjan/entry/xml_schema_editor_in_netbeans
Go to Tools | Plugins in NetBeans IDE 7.0.1. In the Settings tab, register this update center:
http://deadlock.netbeans.org/hudson/job/xml/lastSuccessfulBuild/artifact/build/updates/updates.xml
Now go to the Available Plugins tab and search for XML Tools. Install that plugin.
Go to the New File dialog and pick an XML schema file