How can I group files by task in WebStorm? [duplicate] - webstorm

This question already has an answer here:
How can I add workspaces (tabs groups) to PhpStorm?
(1 answer)
Closed 6 years ago.
I frequently work with logical groupings of files in JetBrains WebStorm, and I'm looking for a way to close/reopen those same files quickly, and ideally with names and descriptions. For instance, if I need to work on the login page, including .js, .html, .css, etc. files, having a menu of task-named file groupings that I can refer to with a keystroke would be very handy.
Does anyone know of a built-in way or a plugin to accomplish this? Having to use ctrl-e and hunt through my open file history is tedious.
Note: I am not looking to group files by dot extension in the project explorer as Visual Studio does.

LazyOne's duplicate reference yielded some information that led me to an answer. It turns out the functionality I want is wrapped inside the "Tasks and Contexts" tool. This allows you to swap IDE states based on a named task, including which files you have open, and, I presume, other parts of the IDE. This is well-integrated into the UI, having a drop-down with task names in the tool bar.
This can also be integrated with issue tracking systems, but since I'm being forced to use TFS (ick), this is irrelevant to me. I'm much more concerned with logical- over issue-grouping.
Here's some good documentation on the feature:
https://www.jetbrains.com/help/webstorm/2016.1/opening-and-creating-tasks.html

Related

Customize WixUI_Minimal on WiX 3.11 / Visual Studio 2017

I'm trying to customzie the WixUI_Minimal dialog set on WiX 3.11, using Visual Studio.
Following the manual here does not work anymore as it reports of a lot of duplicate symbols. For example:
Duplicate symbol 'ControlEvent:VerifyReadyDlg/Back/NewDialog/WelcomeDlg/Installed AND PATCH' found. This typically means that an Id is duplicated. Check to make sure all your identifiers of a given type (File, Component, Feature) are unique
(This stack overflow question ran into the same issue)
Trying the solutions in this question did not help either as it was coming up with various error codes (different than those mentioned in the question).
This question and this one didn't help either.
It seems something broke in Wix 3.11 / Visual Studio 2017. Has anyone managed to understand how to fix it? Am kind of fearing WiX is losing it's support from its authors...
I'm not sure why you think WiX is losing support. Plenty of free support is provided here and on the wix-users mailing list. They also offer paid support options with SLAs and fixes. Other consultants such as myself provide free support and paid support also.
The WiXUI is a simple to use canned set of UI with limited override/transformation capabilities. You can do things like insert a dialog into a wizard loop sequence but doing so requires that you understand how the rows in the ControlEvent table area evaluated.
You can get an example here:
https://github.com/iswix-llc/iswix/blob/master/Application/IsWiXNewAddIn/MSISolutionTemplate/SetupProjectTemplate/UI.wxs
My uncommenting line 10 it causes it to consume this fragment:
https://github.com/iswix-llc/iswix/blob/master/Application/IsWiXNewAddIn/MSISolutionTemplate/SetupProjectTemplate/UI-CustomDialog.wxs
Lines 33-34 insert rows into the ControlEvent table that take priority over existing rows based on:
https://learn.microsoft.com/en-us/windows/desktop/msi/controlevent-table
If this is too limiting for your needs, you can intead not use the UI extension and simply take a copy of all of it's files from here and do anything you want with them:
https://github.com/wixtoolset/wix3/tree/develop/src/ext/UIExtension/wixlib
Finally if that doesn't meet your needs you can always create a custom bootstrapper application for Burn and use WPF/MVVM to do anything you could possibly want.
FWIW, I've been writing installers for 23 years and using MSI for 16 years. I'm the author for the FOSS project IsWiX which provides templates and designers to simplify automate most of this work. You can get an idea of how IsWiX works here:
https://github.com/iswix-llc/iswix-tutorials
1 hour free consultations are available for interested parties. Just shoot me an email or send me a LinkedIn invite.

c++ source code formatter [duplicate]

Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.
There are lots of source code formatting tools out there. Which ones work best for C++?
I'm interested in command-line tools or other things that can be automatically run when checking code in/out, preferably without needing to launch an editor or IDE.
(If you see the one you like already listed as an answer, vote it up. If it's not there, add it.)
AStyle can be customized in great detail for C++ and Java (and others too)
This is a source code formatting tool.
clang-format is a powerful command line tool bundled with the clang compiler which handles even the most obscure language constructs in a coherent way.
It can be integrated with Visual Studio, Emacs, Vim (and others) and can format just the selected lines (or with git/svn to format some diff).
It can be configured with a variety of options listed here.
When using config files (named .clang-format) styles can be per directory - the closest such file in parent directories shall be used for a particular file.
Styles can be inherited from a preset (say LLVM or Google) and can later override different options
It is used by Google and others and is production ready.
Also look at the project UniversalIndentGUI. You can experiment with several indenters using it: AStyle, Uncrustify, GreatCode, ... and select the best for you. Any of them can be run later from a command line.
Uncrustify has a lot of configurable options. You'll probably need Universal Indent GUI (in Konstantin's reply) as well to configure it.

setting up vim project space with 4 different code but related code bases

I'm a novice vim user who really likes vim and wants to take it to the next step in my development workflow.
I have 4 different C/C++ code bases which are compiled using 3 different compilers. Each of the code bases has its own project and makefiles for the compilers. I keep the compilers open to compile the different projects. Two code bases are for firmware of a device, one code base is for a library and the last code base is for a cross platform desktop app that uses the library to talk to the device.
I mainly use vim for my code editing, and right now I have several different vim windows that I keep open, i.e. one per code base. I exit the vim editors a lot to open different code files, which is very unproductive. I often have to look up functions in different files within the same code base. I often have to switch between code bases because the software compiled from one code base processes data generated by a program from another code base and I have to double check defines and such.
I'm wondering if there is a better way to organize this using vim? How does an expert vim user set up his development workflow to work with multiple related code bases within the same vim environment and how does he/she navigate the code bases efficiently?
If your projects are related, and files from one project are referred to in another, I would recommend to open them all in one GVIM instance. I personally often use tab pages to segregate different projects within one Vim instance, but Vim (together with your favorite plugins) is so flexible in this regard that virtually any workflow can be reflected.
For a more precise comment and recommendation, your question is missing details like:
How (through which plugin) do you open project files / recently opened files?
Is your current working directory set to the project root, and does this matter to your workflow?
How is your window layout, do you have any sidebars, and how do you organize your files (buffer list, minimized splits, arg list, etc.)?
There are some blog posts about how individuals have set up their Vim environments, but these naturally are bound to personal preferences and the particular programming environment. So, use them for inspiration, but be aware that there's no perfect recipe, and you'll have to find your own, personal way.

How to create a login application with Visual Basic (using WebHttpRequest)

Hei there, I'm not experienced at all in C++ as I need to start learning year the next year at my university, though, I've been creating a browser based game and I'm looking for someone to transform it into pc app.
Though, I'm wondering how to make that application send a http request via POST to a file on my webserver with the username / pw.
After all the tutotials I've been reading, I concluded that none worth spending my time with, because they all based on own database, and I'm looking for one that connects to a maestro server and requests the data from there.
This may not be the answer you are looking for, but you may consider two alternatives to a more pure C++ application.
If you already have a working browser game, try to take that same code and put the html/javascript/whatever in a file and give the file a ".hta" extention. It basically opens inside a browser to run your files, but it acts more like an application from the user's viewpoint. (And, as much as I hate Windows, they're pretty fun to create if I may say so). However, your source code with this option is easily read because it can be renamed to a text file (or html file).
You could use Visual C++ (or VB.net, which you have tagged to the question, as well as "Visual" C#) to create an application which mostly consists of a browser view. It could be a "standalone" application (however would rely completely on the .Net framework - may or may not be what you want) that basically accomplishes the same as the option above, but adds that you can "hide" your files inside your application.
Using the two above alternatives, you could make an application relatively quickly that would load your files, which I assume you have already created. Note that neither of the above alternatives will work on anything other than Windows OS's.
If the two above alternatives are not what you want, or if you have questions about either one, I'd be glad to attempt to help.
I've been able to find a friend that would do it in Delphi because I wouldn't want users to download net framework just for this ap.
So the program that would fit most for any apps is Delphi Prism XE (even if it's an addon of Visual Studio)

Best C++ Code Formatter/Beautifier

Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.
There are lots of source code formatting tools out there. Which ones work best for C++?
I'm interested in command-line tools or other things that can be automatically run when checking code in/out, preferably without needing to launch an editor or IDE.
(If you see the one you like already listed as an answer, vote it up. If it's not there, add it.)
AStyle can be customized in great detail for C++ and Java (and others too)
This is a source code formatting tool.
clang-format is a powerful command line tool bundled with the clang compiler which handles even the most obscure language constructs in a coherent way.
It can be integrated with Visual Studio, Emacs, Vim (and others) and can format just the selected lines (or with git/svn to format some diff).
It can be configured with a variety of options listed here.
When using config files (named .clang-format) styles can be per directory - the closest such file in parent directories shall be used for a particular file.
Styles can be inherited from a preset (say LLVM or Google) and can later override different options
It is used by Google and others and is production ready.
Also look at the project UniversalIndentGUI. You can experiment with several indenters using it: AStyle, Uncrustify, GreatCode, ... and select the best for you. Any of them can be run later from a command line.
Uncrustify has a lot of configurable options. You'll probably need Universal Indent GUI (in Konstantin's reply) as well to configure it.