Comments (22)
any updates on this??
from xamlstyler.
update on this: thanks to the MFractor team we now have an idea on where to start and are actively working on porting the VS4mac extension to VS 2022. Since there are quite a few breaking changes in the extension SDK this will however take a while.
Should anyone be interested in helping out, let me know and hopefully we can get a working version out soon.
from xamlstyler.
Sorry for the long silence on this everyone. I have been looking into the extension story for VS4Mac and it's all very confusing. It looks like no documentation exists, can't find an SDK and I'm reading several reports on how publishing is not possible right now either.
I have reached out to Microsoft for more information and will keep you posted.
from xamlstyler.
Install the cli tool per wiki and run xstyler -f *.xaml. Wrap that up in gulp or grunt script to look for xaml file changes and auto formatting.
from xamlstyler.
Any news regarding VSMac2022 version?
from xamlstyler.
This is the only thing missing before I can move to the new version
from xamlstyler.
not sure why the need to wrap it in a script.
Replace {macUser} with your user folder
External Tool settings
Command: /Users/{macUser}/.dotnet/tools/xstyler
Arguments: -f ${FileDir}/${FileName} -c /Users/{macUser}/projects/settings/xstyler.json
I'm passing a config file with custom settings
KeyBinding: ctrl shift f
from xamlstyler.
This is highly requested! @grochocki When should we expect support for VS For Mac 2022?
from xamlstyler.
Not optimal, but you can use both VS external tool feature and a script
Script example to adapt:
#!/usr/bin/env bash
xaml_styler=$HOME/.nuget/packages/xamlstyler.console/3.0.0/tools/xstyler.exe
filename=$1
if [ ! -f $xamlstyler ]; then
echo "XamlStyler not found ($xamlstyler)"
exit 1
fi
mono $xaml_styler -f $filename
from xamlstyler.
@FreakyAli still working on it, it's not an easy upgrade :)
from xamlstyler.
Are there any update on this? Using VS for Mac 2022 is almost mandatory on M1 chip Macbook's, so it's really important to have the XAML Styler for that IDE too.
from xamlstyler.
quick update on this: basic functionality is working, but I'm having trouble getting the options panel in VS4mac. I'm not an experienced Mac UI developer so I could use some help here if anyone's up for it.
from xamlstyler.
Install as a global tool
dotnet tool install --global XamlStyler.Console
More info as using it as script here https://github.com/Xavalon/XamlStyler/wiki/Script-Integration
from xamlstyler.
I am using this script, working great!
`#!/usr/bin/env bash
xaml_styler=$HOME/.nuget/packages/xamlstyler.console/3.2206.4/tools/net6.0/any/xstyler.dll
filename=$1
if [ ! -f $xamlstyler ]; then
echo "XamlStyler not found ($xamlstyler)"
exit 1
fi
dotnet $xaml_styler -f $filename
`
from xamlstyler.
update on this: thanks to the MFractor team we now have an idea on where to start and are actively working on porting the VS4mac extension to VS 2022. Since there are quite a few breaking changes in the extension SDK this will however take a while.
Should anyone be interested in helping out, let me know and hopefully we can get a working version out soon.
@NicoVermeir , I am the author of the initial version of Visual Studio for Mac extension, maybe I can help with this port. But I definitely will need help of the MFractor team, they have much greater expertise and Microsoft has drastically changed Visual Studio for Mac 2022
from xamlstyler.
@Saratsin would love your help! I'm at the point where it builds but when I run the extension I get a file not found exceptions on the Irony library. Any ideas on that one? If you want I can publish the branch already so you can take a look
from xamlstyler.
@NicoVermeir yes, publish please your changes to the separate branch, I will check how it is working there
from xamlstyler.
@Saratsin great! here it is: https://github.com/Xavalon/XamlStyler/tree/feature/vs4mac2022
from xamlstyler.
Hey guys any updates, I am getting restless
from xamlstyler.
@NicoVermeir Wish I could somehow show you my appreciation to you...
from xamlstyler.
@bcaceiro I'm still looking for help since I have limited access to a mac, and limited knowledge about vs4mac
from xamlstyler.
@roughiain can you please explain little bit more how this should work? do you have to download on the path /Users/{macUser}/.dotnet/tools/xstyler ? what i am supposed to have it here?
from xamlstyler.
Related Issues (20)
- Support for Rider 2022.2 HOT 4
- Put events together HOT 2
- VSCode Integration Workaround HOT 1
- Need i18n support HOT 1
- Not the same results in "attribute ordering" between Visual Studio and Rider HOT 2
- Option for configuring newline exemptions for attributes HOT 4
- Publish XamlStyler.nupkg on nuget.org
- ARM64 support HOT 10
- Support for Rider 2022.3 HOT 1
- Format Selection text
- Support for Rider 2023.1 HOT 3
- How do I remove XamlStyler?
- How do I change the keyboard shortcut to launch XamlStyler? HOT 1
- How do I get a JSON configuration file? HOT 1
- Sort differently between vs2022 and rider 2023.1 HOT 1
- Formatting on GitHub Actions fails with "Could not find a part of the path" HOT 3
- Formatting fails if a comment contains 'xmlns:' HOT 2
- Format document shortcut missing in JetBrains Rider version.
- Publish latest XamlStyler.Console to NuGet HOT 5
- Is it possible to prevent formatting of short lines - regardless of number of attributes? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamlstyler.