Hello everyone, I’m new so please understand
I am using autocomplete and I have a problem with parameters that start with (-) dash character.
The autocomplete pop-up is not displayed if in the sublime-completions file the parameter is entered without a space. If I add a gap e.g. " -Patch" then it shows up in the Popup but is entered with this gap in the code. This is annoying for me because I then have to manually delete these extra gaps.
Not working
{
"scope": "source.powershell",
"completions": [
"Copy-Item",
"Remove-Item",
"Out-File",
"-Include",
"-Exclude",
"-Path",
"-Force",
"-Filter"
]
}
Working
{
"scope": "source.powershell",
"completions": [
"Copy-Item",
"Remove-Item",
"Out-File",
" -Include",
" -Exclude",
" -Path",
" -Force",
" -Filter"
]
}
Is there a solution to this problem?