Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create community_snippets.md for user created snippets #1246

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

Merged
TylerLeonhardt merged 2 commits into master from snippets-docs
Apr 24, 2018

Conversation

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Mar 25, 2018

This is for the snippets that are great at particular things that are a bit too specific to be shipped in the extension itself.

A great example would be these argument completion snippets (#1212) submitted by @powercode.

If anyone wants to give me some snippets to start out with, send them my way here 😄

rjmholt reacted with hooray emoji
Copy link
Contributor

@tylerl0706 Checked against my local snippet on my current machine and this is the PSCustomObject snippet that I use.

"PSCustomObject": {
	"prefix": "PSCustomObject",
	"body": [
		"[PSCustomObject]@{\r",
			"\t${item1} = ${Property1}\r",
			"\t${item2} = ${Property2}\r",
			"\t${item3} = ${Property3}\r",
			"\t${item4} = ${Property4}\r",
		"}"
	],
	"description": "Creates a PSCustomObject"
}

I presume there'd be a debate around how many default properties to include but any fewer than 4 and I'd likely just use Select-Object in most cases.

veronicageek and TylerLeonhardt reacted with thumbs up emoji

Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome.

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

@TylerLeonhardt TylerLeonhardt deleted the snippets-docs branch April 24, 2018 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@SeeminglyScience SeeminglyScience Awaiting requested review from SeeminglyScience

2 more reviewers

@rkeithhill rkeithhill rkeithhill approved these changes

@rjmholt rjmholt rjmholt approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /