How to prioritize snippet in code suggestion in Xcode? - xcode

Question is clear, I want to prioritize snippets on suggestions, how can I do that?
I couldn't find anything in Xcode settings.

you can set completion title to access your snippets
in attached image you can find where to set completion title

Related

How do I get to see the contents of my just made .plist?

I just made a new file: "VideoNames.plist". Usually the template is shown in the editor. But it is showing up empty. Before updating to Xcode 13.3 I did not have this problem.
When I go and look up the file, the template contents is there.
So how do I convince the editor to show it in plist or xml format?
Thanks in advance.
Got it!
It turned out that I accidentally had tapped the Enable/Disable Code Review button. Tapping it again brought back my .plist as well as several other missing windows, like fx Assets.xcassets.
Thanks anyway! I appreciate all the good answers, I have found here on this site.

Can't see launchscreen.storyboard in Xcode13

I've been searching for an hour and can't find the answer.
I can't seem to "activate" see the launchscreen.storyboard option in my Xcode13 project.
I attach a screenshot of what I'm seeing.
Xcode13 not Showing launchscreen.storyboard
You are right, you are not able to see LaunchScreen.storyboard in your XCode13 project. It's due to following reason...
You might selected SwiftUI option for your development: Here if it's correct then please let me update you:
SwiftUI came with lot's of surprising updates for iOS eco-system applications. And this is one of the update from SwiftUI.
Now-onwards, we not need to deal with storyboards anymore. Yes absolutely correct. Now just two line of .plist file creates Storyboard for us. Please have a look how you can achieve it.
Apple has provided a new Key in the info.plist to help you create a basic LaunchScreen.
Please go though following examples :
https://www.avanderlee.com/xcode/launch-screen/
https://danielbernal.co/creating-a-launch-screen-with-swift-ui/
That's it. How cool is it? Hope you now understood it :-)

VS2019 addin/extensions How do enable/disable menu item

I am learning how to write VS2019 addin/extensions and searching for some good resource on specific questions like...
I am looking for some answers like,
How to i enable my menu item, only when a specific type of project is open or selected in a solution. ?
How do i iterate through files in a solution, How do i add files in a solution?
Is there any dom object available through which i can access items i need from XAML files.
Any good easy article answering above would be helpful.
Regards
To enable/disable your menu items/commands, take a look at the BeforeQuesryStatus event. See my answer from here for more details https://stackoverflow.com/a/52059488/6775515
To iterate through the file, you need to use the DTE interface. From there, you can access the solution from where you can get all the projects, all the projects file, or the selected files if this is what you want.
I didn't work with XAML files in a VSIX yet, but if anybody did it, please feel free to edit this answer in order to provide better response for the community. I would be curious too :)
Here is also a playlist of new videos from Microsoft: https://www.youtube.com/watch?v=EniQmgmMb6o&list=PLReL099Y5nRdG2n1PrY_tbCsUznoYvqkS
I think you will get better responses to your questions in the future if you will post a single question/issue in one post and not a series of questions.

Kendo tabs strange behaviour

I am very new to MVC/Kendo, I have a series of tabs like so:
However when I add an icon to the emailing tab a bar appears under all the other tabs:
Could anyone advise as to why this would happen?
Many thanks in advance.
So I have provided a sample Dojo for you which should hopefully help https://dojo.telerik.com/OsIhINOy/4
What I suspect is happening is that you are not applying the k-state-active to the selected tab when clicked which is why the line is still appearing. (you can see this by just deleting the k-state-active class from the first tab.
If you are able to provide a sample of your code in the future it will help in assisting your question better rather than images as it is difficult to tell what may be happening from just an image.

VSCommands Solution Badges parameters

does anyone know what are the various parameters for VSCommands's Solution Badges feature? On the official site http://vscommands.squaredinfinity.com/Features-SolutionBadges they tell you everything BUT the most important thing and that is the list of available parameters (ie. {solutionFileName}, {sln:activeConfig}, {branchDirectoryName} and so on). Can't seem to be able to google them either. Am I missing something obvious here?
So it seems that pretty much all available parameters are already displayed with the default configuration (had to decompile and deobfuscate the extension to find out this information). What I was after was full solution path in the window's title bar. I solved the problem with this handy extension
Visual Studio Window Title Changer.

Resources