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

Problem occurs when using predefined vars #53

Open
colourfulspring opened this issue May 14, 2021 · 0 comments
Open

Problem occurs when using predefined vars #53

colourfulspring opened this issue May 14, 2021 · 0 comments

Comments

@colourfulspring
Copy link

I write this code in my settings.json file:

"actionButtons": {
        "defaultColor": "white", // Can also use string color names.
        "commands": [
            {
                "name": "Run Cpp",
                "color": "white",
                "command": "g++ ${fileBasename} -o ${fileBasenameNoExtension} && ./${fileBasenameNoExtension}",
            }
        ]
    },

But after I click the button generated by the code, this command runs on the terminal : (the name of my cpp file is Solution.cpp)

g++ Solution.cpp -o Solution && ./${fileBasenameNoExtension}

I have no idea about why the latter ${fileBasenameNoExtension} remains uninterpreted. Can you help me? Thanks!!

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

1 participant