Difference between revisions of "Atom"

1,875 bytes added ,  15:25, 20 June 2016
Added tips and tricks
imported>Kicoax
(Added info about build targets)
imported>Kicoax
(Added tips and tricks)
Line 60: Line 60:
If your mod's scripts are outside of the game's scripts directory, make sure you add it to the <code>imports</code> setting, and change the <code>output</code> directory.
If your mod's scripts are outside of the game's scripts directory, make sure you add it to the <code>imports</code> setting, and change the <code>output</code> directory.
If you do not have the DLC, simply remove them from the <code>imports</code> setting.
If you do not have the DLC, simply remove them from the <code>imports</code> setting.
==Tips 'n' Tricks==
*Pressing {{key press|Ctrl|P}} will open a fuzzy finder for all files in the folder you have open. It will list files that match your search in real-time. You can type file names in just about any shorthand you can think of, and it will find them correctly. "comph" will match "CompanionsHousekeepingScript", for example.
*After compiling, if there are any errors, you can cycle through them with {{key press|Ctrl|Alt|G}} or {{key press|F4}}. You can also jump straight to the first error with {{key press|Ctrl|Alt|H}} or {{key press|Shift|F4}}. Additionally, you can click on the errors at the bottom of the window to jump to them. The linter package will also list the errors in a much prettier, more usable way.
*Holding {{key press|Ctrl}} allows you to move lines up and down with the arrow keys.
*{{key press|Ctrl|Shift|D}} duplicates a line.
*Highlight a word, then press {{key press|Ctrl|D}} repeatedly to highlight each occurrence of it in succession. This makes renaming variables and functions quite simple!
*All Events that the compiler supports have been added as snippets, so if you type the name of the event and hit {{key press|Tab}}, it will autocomplete to the full event (with parameters) so you don't have to check the wiki for syntax.
**For remote-registered events, use the name of the event followed by {{kbd|-rem}} to have the correct syntax filled out.
**For reference collection aliases, use the name of the event followed by {{kbd|-rc}} to have the sender parameter auto-added
**Both of the above are combined into {{kbd|-rem-rc}} if you happen to need a remote event from a ref collection alias.
*All the functions on the wiki have been added as snippets. You can type part of the function name and hit {{key press|Tab}} to fill out the function with all the parameters. Hit {{key press|Tab}} to switch between each parameter.


==Recommended packages==
==Recommended packages==
Anonymous user