Windows 11 - Associate .yaml file to Open With Default Application - windows

I'm trying to configure Windows 11 to associate a .yaml file to open with a default application (vscode). I have tried right-clicking my yaml file, Open With -> Choose another app, but there is no Always use this app to open... checkbox to select a default application.
I have seen other solutions suggest going to settings -> apps -> default apps, however the .yaml extension doesn't appear to be recognized (only .yml) when I navigate there.
How can I configure windows 11 to always open .yaml files with a default application other than Notepad?

In VSCODE
Go to File: Preferences: Settings
In the searchbar type file.associations
Add the following associaton
Item
Value
*.yaml
yaml

Related

PhpStorm's Extract Interface refactoring not working

I'm trying to extract the interface from class using Context Menu on class name -> Refactor -> Extract interface.
Dialog window appears where I enter the interface name and press the "Refactor" button.
It looks for class usages and then nothing happens: no preview window opens, no new file with interface created.
Just the dialog window continues to be shown and that's it.
This happens on MacOS, PhpStorm 2022.2 and 2021.2
What should I do to make it generate a new interface from the existing class?
I tried to Invalidate Caches with different checked options and then with all checked options, but it doesn't solve problem
After that I removed all files from directories:
Settings: ~/Library/Application Support/JetBrains/
Plugins: ~/Library/Application Support/JetBrains/Plugins/
Caches: ~/Library/Caches/JetBrains/
Logs: ~/Library/Logs/JetBrains/
Problem was gone
Then I localized problem by restoring Plugins folder and trying to disable different plugins
At last it was "Yii2 Support" plugin unfortunately

Open folder as project in PhpStorm

When I install PhpStorm from JetBrains Toolbox app I do not have an option to open folders as project when right clicking
Sadly JetBrains Toolbox App does not provide such functionality. Only standalone installer has an option to make them right now. You will have to either use that... or create such entries manually.
https://youtrack.jetbrains.com/issue/TBX-2478 -- watch this ticket (star/vote/comment) to get notified with any progress.
To add an entry to the Windows Explorer's right-click menu:
you can use FileTypesMan by NirSoft or a similar tool.
or create such entry manually, e.g. see this comment for a basic .bat file: https://youtrack.jetbrains.com/issue/IDEA-114307#comment=27-2125363 (at very least it lists Registry keys where to create such an entry).
I found this from Jet Brains :
Click Open on the Welcome screen or select File | Open from the main menu.
In the Select Path dialog, select the directory that contains the project to open.
Drag the desired project from your file chooser right to the Open Project dialog without locating it there. The respective file in the dialog will be found automatically.
Specify whether you want to open the project in a new window, close the current project and reuse the existing window, or open the new project in the same window with the current one. Refer to the Opening multiple projects section for details.
and for the command line you could use this :
<PhpStorm> <path_to_the_project folder>
See Open files from the command line for more information.

Visual studio publish desktop application with editable file

I have a c# desktop application.
I need to let the application read a configuration file (editable by the final user) and use readed values to chenge application behavior.
I need that this file is editable when the app is published. What kind of file I need to use? Ore which kind of properties I need to put on this file?
Now I tryied with a xlsx file included in project. In debug It works fine, but When I publish the application, the xlsx became a xlsx.deploy file and I can't edit anymore.
Thanks in advance
Just have a try.
project -> right click -> properties -> publishing -> options->Deployment。

How to associate types of files in Mac Finder to be opened by IntelliJ IDEA in "LightEdit" mode if I am a JetBrains Toolbox user?

IntelliJ IDEA 2020 can (finally!) simply open a file to be edited, without a project being involved. This is called LightEdit mode.
At this point in a JetBrains video, we see the host platform's file manager app opening a file via IntelliJ while noting that all such files should be opened using that same tool.
No "IntelliJ" application to choose
The problem for me is that I am a happy user of JetBrains Toolbox app to automatically install, upgrade, and open IntelliJ. So in my "Applications" folder on macOS, I have no "IntelliJ" application to choose in the Mac Finder when trying to open a file.
Is there some other way or trick to getting the Finder to know to open files with IntelliJ? And preferably with the latest version, as I believe Toolbox may keep around the older versions.
Basically, I am asking the same as this Question, How to make available “open this project in IntelliJ IDEA” option in Windows context menu, if IntelliJ IDEA has been installed via JetBrains Toolbox?, but for macOS instead of MS Windows. The Answer on that other Question is Windows-specific.
As a Toolbox user you still have access to the "generated shell scripts" (/usr/local/bin/idea, or things like /usr/local/bin/phpstorm, /usr/local/bin/pycharm, etc for individual applications).
But, these are shell scripts, and cannot be used for this because they lack the application identifiers needed by the OS for launching apps.
What you can do is wrap any of this with an Automator application. By wrapping the shell script directly, it should remain updated (since the shell script is itself a Toolbox generated wrapper that points to the latest installed version).
To do so:
Open Automator and click on the "new document" button.
Select "Application".
Add a "Run shell script" action from the library:
Change the "pass input" dropdown from "to stdin" to "as arguments".
Create a script similar to this this (replace phpstorm with idea or whatever IDE you have installed):
for file in "$#"
do
/usr/local/bin/phpstorm -e "$file"
done
Save the application somwhere, with a descriptive name:
Once that one is saved, you'll be able to use it to launch files from Finder, or even set it as default for a file type:
Use the app's menu: IntelliJ IDEA -> Preferences -> Editor -> File Types
Then press the Associate File Types with IntelliJ IDEA button.
A window will open with file groups you could choose from, and then press the OK button, then Apply and another OK.
After this, a MacOS restart is required.

setup file for window application

I created a setup file. It is working fine, but I want an image for my setup. When I installed the setup in any system I want some images on my setup. Help me, thank u.
I will tell you how to do it in Visual Studio. To change the setup.exe icon you can do the following:
Build your setup project
Open the setup.exe file use just build, File -> Open -> File
Right click the Icon node in the file explorer window and choose the Add Resource
Import the icon your want in the popup dialog, and make sure the ID of the icon is the smallest one.

Resources