You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runners/katacoda/templates/intro.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,4 @@ The definition of each step of this tutorial can be found at https://github.com/
5
5
6
6
Feel free to report any errors to us or fix them yourself. Errors can be reported by creating an issue in the https://github.com/devonfw-tutorials/tutorials/issues[tutorials repository]. To fix the error fork the repository and create a pull request. Errors in the wiki can be reported and fixed in the https://github.com/devonfw-tutorials/tutorial-compiler[Tutorial-compiler repository].
7
7
You can find a description of what to look for when creating a pull request at the devonfw contribution guide: https://devonfw.com/website/pages/community/community.html#community.asciidoc_contributing-to-devonfw. If you want to create a tutorial you can start with the https://katacoda.com/devonfw/scenarios/create-your-own-tutorial[katacoda tutorial] and read the description for creating your own tutorials: https://github.com/devonfw-tutorials/tutorials/wiki/Development.
* Eclipse IDE (can be installed in your devonfw environment).
5
+
3
6
=== Changing of <%= fileName; %> in the Eclipse IDE
4
7
5
-
<% if(contentPath) {%>
6
-
First, you want to open the file <%= contentFile; %> where you get the content from, you want to insert into <%= fileName; %>.
7
-
Go to the file context menu in the top left corner right and choose *Open File...*.
8
-
Based on your operating system a window with the file explorer opens. You have to navigate to <%= contentFile; %> and select it. Select the right folder manually or by inserting the path `<%= contentPath; %>` into the path bar, so you can jump into the right folder and select the file `<%= contentFile; %>`.
9
-
You confirm this with the *Open* button in the bottom right corner.
10
-
The file will be opened in a new Eclipse editor window where you can select the whole text with the keyboard shortcut ctrl+a or just select the text you want to copy and copy the text with ctrl+c.<% } %>
11
8
12
9
To change the <%= fileName; %> file, you have to open it in the Eclipse IDE.
13
10
Open Eclipse and choose in the file context menu in the top left corner *Open File...*.
14
-
Based on your operating system a window with the file explorer opens. You have to navigate to <%= fileName; %> and select it. Select the right folder manually or by inserting the path `<%= filePath; %>` into the path bar, so you can jump into the right folder and select the file `<%= fileName; %>`.
15
-
You confirm this with the *Open* button in the bottom right corner.
16
-
The file will be opened in a new Eclipse editor window.
11
+
Based on your operating system a window with the file explorer opens. You have to navigate to <%= fileName; %> and select it. Choose the right folder manually by selecting the folders from the path `<%= filePath; %>` and select the file `<%= fileName; %>`.
12
+
You confirm this with the *Open* button in the bottom right corner and <%= fileName; %> will be opened in a new Eclipse editor window.
13
+
14
+
Copy the following text.
15
+
[source, <%= fileType; %>]
16
+
----
17
+
<%- content; %>
18
+
----
17
19
18
-
<% if(contentString) { %>Now we can copy the content *<%= contentString; %>* with ctrl+c we want to insert into <%= fileName; %>. <% } %>
19
-
<% if(lineNumber) { %>Inserting the content into a specific line number can be done by a left mouse click into the line *<%= lineNumber%>* and using the keyboard shortcut ctrl+v.
20
-
<%}else if(placeholder) {%>To replace the content with a specific Placeholder you have to locate the placeholder in <%= fileName %>. The fastest way is to search through the file with ctrl+f. A *Find/Replace* window will be opened and pasting the placeholder *<%= placeholder; %>* into the text field *find*. Use the button *Find* and the placeholder will be marked in the text and you can replace him with the new content.
21
-
<% }else{ %>Now you can select the place you want to insert the content or just append it at the end of the file and paste the content with the shortcut ctrl+v. <% } %>
22
20
23
-
The final step is to save the file by selecting *Save* in the file context menu or by using the keyboard shortcut ctrl+s and <%= fileName; %> has been changed.
21
+
<% if(lineNumber) { %>Insert the content into the line *<%= lineNumber%>* in the opened <%= fileName; %>.
22
+
<%}else if(placeholder) {%>To replace the content with a specific placeholder you have to locate the placeholder in the file. The fastest way is to search through the opened file and replace *<%= placeholder; %>* with the new content.
23
+
<% }else{ %>Now insert the copied text into the opened <%= fileName; %>. <% } %>
24
+
The final step is to save the file by selecting *Save* in the file context menu or by using the keyboard shortcut ctrl+s and <%= fileName; %> has been changed.
0 commit comments