-
Notifications
You must be signed in to change notification settings - Fork 508
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
Here string intellisense completion and indentation #1517
Comments
Yep. This is a duplicate of #181. We just haven't had cycles to address the problem. I would think one would just need to send a PR to VSCode itself and add to this But I haven't tried it. |
Maybe @aeschli can have a look? It would be great if this could be fixed. |
btw anyone should be able to play around with this. The file should be located here:
(I'm on a mac so it's slightly different Try adding If that works, we should get some guidance from @aeschli on how we can have both of these entries in the |
Thanks for the help @tylerl0706 . I've tried your suggestion: C:\Users\me\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\powershell\language-configuration.json {
"comments": {
"lineComment": "#",
"blockComment": [ "<#", "#>" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"],
["@'", "'@"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "\"", "close": "\"", "notIn": ["string"]},
["<#", "#>"],
["@'", "'@"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["@'", "'@"]
],
"folding": {
"markers": {
"start": "^\\s*#[rR]egion\\b",
"end": "^\\s*#[eE]nd[rR]egion\\b"
}
}
} Nothing changed. After restarting VS Code Insiders it even threw an error that the PowerShell extension crashed. But that hasn't happened anymore after the first time. |
Try modifying just this section:
That works for me but now you lose auto-close of |
Yep. I get the same thing as @rkeithhill. So I think we should open an issue on vscode for guidance. |
If both types of closing pairs (here string & normal string) could be made to work, this would be a nice enhancement. |
Opened this microsoft/vscode#58619 |
@rkeithhill I agree 100%. 😄 |
Thanks @tylerl0706 and @rkeithhill for putting it in the spotlight, been struggling with this for a while now. If this gets fixed than VS Code will be my main editor. |
In the editor here strings are not correctly completed and indented. some expamples:
This is very annoying when working with HTML strings.
The text was updated successfully, but these errors were encountered: