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
1. Path of the file to be changed (relative path to the workspace directory)
75
+
2.
76
+
* path of the file to get the content from or a string, that should be inserted.
77
+
* (Optional) Name of a placeholder
78
+
#### example
79
+
changeFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java", { "file": "files/Placeholder.java", "placeholder": "private static final long serialVersionUID = 1L;" })
80
+
#### details
81
+
##### Path of the file to get the content from or a string, that should be inserted.
82
+
If you want to add content from a file:
83
+
{"file": "[path]"}
84
+
If you want to add a string to a file:
85
+
{"content": "[string]"}
86
+
##### Name of the placeholder
87
+
If you want to insert content into your code between two existing lines, take the previous line as your placeholder. Add your placeholder into the new file or string, otherwise it will be replaced entirely.
A placeholder is optional. If you do not define a placeholder, the content in the existing file will be simply replaced by the new content.
95
+
96
+
Please try not to use custom placeholders. Keep in mind that you might want to build the project before changing them. Custom placeholders with a comment-syntax (e.g. "//PLACEHOLDER") will be removed by the console-environment and others might cause errors.
0 commit comments