Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7cd1c304
Commit
7cd1c304
authored
Mar 12, 2021
by
Amy Qualls
Committed by
Craig Norris
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention the snippets dashboard early on
Mention that the snippets dashboard is a way to create new snippets.
parent
ecbb279a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
doc/user/snippets.md
doc/user/snippets.md
+11
-7
No files found.
doc/user/snippets.md
View file @
7cd1c304
...
@@ -27,15 +27,19 @@ GitLab provides two types of snippets:
...
@@ -27,15 +27,19 @@ GitLab provides two types of snippets:
You can create snippets in multiple ways, depending on whether you want to create a personal or project snippet:
You can create snippets in multiple ways, depending on whether you want to create a personal or project snippet:
1.
Select the kind of snippet you want to create:
1.
Select the kind of snippet you want to create:
-
**To create a personal snippet**
:
-
**To create a personal snippet**
: On the
[
Snippets dashboard
](
https://gitlab.com/dashboard/snippets
)
, click
**New snippet**
, or:
-
*If you're on a project's page,*
select the plus icon (
**{plus-square-o}**
)
-
*If you're on a project's page,*
select the plus icon (
**{plus-square-o}**
)
in the top navigation bar, then select
**New snippet**
from the
**GitLab**
(for GitLab.com)
in the top navigation bar, and then select
**New snippet**
from the
or
**Your Instance**
(self-managed) section of the same dropdown menu.
**GitLab**
(GitLab SaaS) or
**Your Instance**
(self-managed) section
of the same dropdown menu.
-
*For all other pages,*
select the plus icon (
**{plus-square-o}**
)
-
*For all other pages,*
select the plus icon (
**{plus-square-o}**
)
in the top navigation bar, then select
**New snippet**
from the dropdown menu.
in the top navigation bar, then select
**New snippet**
from the dropdown
-
**To create a project snippet**
: Go to your project's page. Select the plus icon
menu.
(
**{plus-square-o}**
), then select
**New snippet**
from the
**This project**
section
-
**To create a project snippet**
: Go to your project's page. Select the
of the dropdown menu.
plus icon (
**{plus-square-o}**
), and then select
**New snippet**
from the
**This project**
section of the dropdown menu.
1.
Add a
**Title**
and
**Description**
.
1.
Add a
**Title**
and
**Description**
.
1.
Name your
**File**
with an appropriate extension, such as
`example.rb`
or
`index.html`
.
1.
Name your
**File**
with an appropriate extension, such as
`example.rb`
or
`index.html`
.
Filenames with appropriate extensions display
[
syntax highlighting
](
#filenames
)
.
Filenames with appropriate extensions display
[
syntax highlighting
](
#filenames
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment