Giter Site home page Giter Site logo

Comments (26)

konytskyy avatar konytskyy commented on June 15, 2024 1

Yes, it's c#

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Interesting. Could you post your custom snippets file? Thanks.

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

XpoSnippets.zip

Snippets to work with xpo of devexpress

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Confirmed. The whole Surround With feature is a wrapper around subset of VS's surround with + dedicated commands with their own shortcuts. It does fall apart when custom snippets are added to the mix.

I have a preliminary patch ready but I'll need to do quite a bit more testing, including other languages that Surround With is supported for. It'll probably be a month or so before I can get a patch out. I'll keep you posted. Thanks.

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

DPack is fantastic I use it since VS 2015 and if I can contribute in some test...

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Here's an updated version that should finalize that Surround With issue. Give it a try and let me know if you run into any issues.

DPackRx-4.5.2.2.vsix.zip

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

Thank you. It works as expected a bit slow but it works.
Is it possible to add also "using" in context menu?

immagine

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Thank you. It works as expected a bit slow but it works. Is it possible to add also "using" in context menu?

Yeah, I can see that. Old DPack used to do its own formatting instead of relying on built in snippets. I almost dropped Surround With feature for VS 2022 and added this current workaround, The downside is that it's slower, doesn't allow for additional formatting, and not supported for VB of all things,

I'll look into adding using.

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

OK. Doesn't matter. Thank you again for your work and you add-on :-)

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

Hi,

I see little bug

when ypu decide to surround with "region" it puts "if" snippets
immagine

immagine

Yuriy

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

That's for C# isn't it? Thanks.

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Check Insert Snippet built-in command, select Visual C#, and report back on what you get. Here's what I'm seeing here:

image

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

Yes I know how to do this but how many clicks I do have to arrive to a #region ? :-)
Your extension allow me to have job done in 2 clicks also if it's a bit slow

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

That's not what I was looking for. I basically wanna see a screenshot similar to mine taken on your machine. Thanks.

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

These are snapshoot sequence for "surround with" from VS
immagine

immagine

immagine

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Quick update - I'm gonna try resurrecting pre-VS2022 version that doesn't rely on built-in templates.

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Resurrected older Surround With functionality. Give new beta a try and let me know how that works for you. Thanks.

DPackRx-4.5.2.3.vsix.zip

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

Thank you I'll try it immediately

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

After installation v2.5.2.3 I don't see anymore DPack menu Surround with
immagine

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Try restarting VS. I had noticed the same thing here while testing it but couldn't reproduce it - it'd be missing and then back after restart. I'll take a closer look if that still persists for you.

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

No, neither after restart there is no "Surround with" menu. I have aslo tried to see if this menu was hidden but I could not find it

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Identified a breaking change. Will have another beta out in a few days. Thanks.

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

Give new beta a try and let me know how it turns out. Thanks.

DPackRx-4.5.2.4.vsix.zip

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

Thank you I'll try immediately

from dpack.

konytskyy avatar konytskyy commented on June 15, 2024

Everything is ok, Surround works as expected and its also very quick. Thak you !!!

from dpack.

sergey-visual-studio avatar sergey-visual-studio commented on June 15, 2024

New release should be out shortly.

from dpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.