Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapping quotes/replacing quotes with - not working #64

Open
Xelbayria opened this issue Sep 22, 2022 · 8 comments
Open

Swapping quotes/replacing quotes with - not working #64

Xelbayria opened this issue Sep 22, 2022 · 8 comments

Comments

@Xelbayria
Copy link

Hello, The package is not working properly.

DETAILS:

  • OS: Windows 10 Pro / Windows_NT x64 10.0.19044
  • Version of Visual Studio CODE: v1.71.2
  • version of the package: v1.3.1

A list of issues:

  • Swap quotes/Replace quotes with... (CTRL + SHIFT + ALT + ; )
    I used this to change " to `, then nothing. got the message: No quotes to modify found.
    what I want to change the quote to a single quote ** ' **

Is there a workaround for this? or a fix?

@Pustelto
Copy link
Owner

Hi, what language are we talking about? Javascript, CSS or something else?

@Xelbayria
Copy link
Author

It's C++

@Pustelto
Copy link
Owner

Pustelto commented Nov 17, 2022

Can you please send me some small sample of a code where you expect it to work? I never tested it on C++. Is backtick (`) a valid string delimiter in C++? If not and you need only single and double quotes then this should be only a matter of configuration. I can add it to the plugin.

@Xelbayria
Copy link
Author

Xelbayria commented Dec 15, 2022

Can you please send me some small sample of a code where you expect it to work? I never tested it on C++. Is backtick (`) a valid string delimiter in C++? If not and you need only single and double quotes then this should be only a matter of configuration. I can add it to the plugin.

alright, let me know if the plugin have been updated. As far as I know I only use ' and " (single & double quote) in C++ but C++ do not have any special use of backtick ( ` ).

let me know if you need a copy of what a code looks like in C++

@Xelbayria
Copy link
Author

Xelbayria commented Feb 9, 2023

Any news? I haven't heard anything?

@Pustelto
Copy link
Owner

Not yet, sorry. Will try get to it in the upcoming weeks. Can you please send me some small C++ code sample where I could test this? Thanks.

@Xelbayria
Copy link
Author

void creating_map() {
    //@ Information of Player 1
    player_one["number"] = L"One";
    player_one["name"] = L"John Doe";
    player_one["marker"] = L"None";
    player_one["wins"] = to_wstring(player_1_wins);
    // player_one["loss"] = to_wstring(player_1_loss);

    //@ Information of Player 2
    player_two["number"] = L"Two";
    player_two["name"] = L"Jane Doe";
    player_two["marker"] = L"None";
    player_two["wins"] = to_wstring(player_2_wins);
    // player_two["loss"] = to_wstring(player_2_loss);
}

string example = "This is a test"

Here's the code from test.cpp. Above is a good example of using either bracket or quote no quotes is found and it's the same message for bracket. because of this [" "]

Test the example and it will change to ` which is not used in C++ but i am sure it's used in other languages. C++ only use either ' or " (single quote or double quote)

let me know if you need one more small code to run tests to be sure. I also faced some similar problem in LUA where I wanted to change a quote to another quote
mytable["myvariable"] = value

@rahulsenna
Copy link

I've addressed this issue in #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants