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: README.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Go to your Sublime Text `Packages` directory and clone this repository:
58
58
- In Sublime Text, select your main `.pde` file and use **⌘B** to run the sketch. The build system expects that your sketch follows the normal directory structure and naming conventions of a Processing sketch (e.g. `mysketch/mysketch.pde`).
59
59
- With **⇧⌘B** and typing `build`, you can select alternative build systems, such as _Run sketch fullscreen_ and various _Export sketch_ options.
60
60
61
-
### Custom shortcuts
61
+
### Custom Shortcuts
62
62
To get `.pde` files to run with **⌘R** and **⇧⌘R** (like Processing) instead of **⌘B** and **⇧⌘B**, add the following code to the User Key Bindings file via the _Preferences > Key Bindings - User_ menu item in Sublime Text.
63
63
64
64
```
@@ -73,9 +73,16 @@ To get `.pde` files to run with **⌘R** and **⇧⌘R** (like Processing) inste
73
73
}
74
74
```
75
75
76
-
### Console errors
76
+
### Console Errors
77
77
Console error messages are clickable: e.g. double click `test.pde:10:0:10:0: The function rEEct(int, int, int, int) does not exist` to jump to the related line and file.
78
78
79
+
### Filenames of Sketches
80
+
Your filenames have to follow specific rules, otherwise they won't work with `processing-java`:
81
+
82
+
- must not contain dashes `-` (see processing/processing#4861)
83
+
- must not start with a number `0123456789` (see processing/processing#2152)
84
+
- must not start with an underscore `_` (see processing/processing#2152)
85
+
- must adhere to [Java class naming rules](https://docs.oracle.com/javase/specs/jls/se11/html/jls-3.html#jls-3.8) (see [stackoverflow discussion](https://stackoverflow.com/a/65490/7574329) for the gist of it)
79
86
80
87
## Want a "Pure Java" Project without Eclipse?
81
88
@@ -104,14 +111,15 @@ If you are new to Sublime I recommend the [Perfect Workflow in Sublime Text](htt
104
111
## Acknowledgements
105
112
- Original [Processing TextMate Bundle](http://www.onebitwonder.com/projects/processing/): [Leon Hong](http://www.onebitwonder.com/)
106
113
- Textmate to Sublime snippet conversion: [textmate-to-sublime-converter](https://github.com/srbs/textmate-to-sublime-converter)
- Syntax definition, snippet cleansing, Processing reference vs. sublime [diff tool](https://github.com/ybakos/processing-sublime-util), and _New Java Ant Project_ command: [Yong Joseph Bakos](http://yongbakos.com)
113
120
- How to set custom shortcuts: [Raphaël de Courville](https://github.com/SableRaf)
114
121
- Rebuild of the processing syntax highlighter: [Kyle Fleming](https://github.com/kylefleming)
122
+
- Filenames rules of sketches: [MaxValue](https://github.com/MaxValue)
115
123
116
124
See the [contributing guide](https://github.com/b-g/processing-sublime/blob/master/CONTRIBUTING.md) to learn about how to contribute to this project.
0 commit comments