Skip to content

symbols list for powershell syntax #27

@nazikus

Description

@nazikus

I've tried to list powershell functions in Symbol List (Ctrl-R) by adding additional preferences file. It didn't work, although this approach worked fine for my custom language syntax. How should it be done properly in this case?

I have added Packages\PowerShell\Support\PowershellSymbols.tmPreferences with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>name</key>
    <string>Functions</string>
    <key>scope</key>
    <string>source.powershell</string>
    <key>settings</key>
    <dict>
      <key>showInSymbolList</key>
      <integer>1</integer>
      <key>symbolTransformation</key>
      <string>
         s/\s*Function (\S*)/Func $1/g;
      </string>
    </dict>
    <key>uuid</key>
    <string>06532840-4879-11df-9879-0800200c9a66</string>
</dict>
</plist>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions