Type on every line of a selection with Alt+Shift+I
ShotScriptStroke Engine

Type on every line of a selection with Alt+Shift+I

By ShotScript Team

Select across three lines in a ShotScript tab, press Alt+Shift+I, and each line gets a selection of its own. Type a letter and it replaces all three at once. One Ctrl+Z brings the three selections back, ready for another go.

That was Thursday's change we think you'll reach for most. Further down you'll find two carets that take Studio's keys, Docs sidebars that keep up while you type, Properties you can tab through, system lines that only take dots, and finer detail in Stroke Engine. Well over a hundred smaller changes went live too, and New in ShotScript and New in Stroke Engine list every one.

One selection, a line each

Alt+Shift+I acts the way Studio's does, small cases included. On a bare caret it does nothing at all. On a selection inside one line it changes nothing, and the next letter you type simply replaces that selection, so a stray press never costs you your work.

Once the line is split, you're typing at several carets, and that's where the rest of Thursday went.

Two carets, Studio's keys

You make a second caret with Alt+click or Ctrl+Alt+Down. Over Thursday, nearly every key you'd press at one caret learned to work at two, the way Studio does it.

  • Ctrl+] and Ctrl+[ indent or outdent both lines, and Tab indents every line both selections run over.
  • Alt+Up and Alt+Down move both lines with both words still selected, in a tab with no doc comments.
  • Ctrl+Backspace and Ctrl+Delete take a word at each caret. Ctrl+Shift+K removes both carets' lines in one go.
  • Enter inside parentheses opens both pairs onto three lines, each caret on the indented middle line. Backspace in an empty pair clears both.
  • Ctrl+Shift+D copies your first caret's line below it, and the other caret moves down with its own text.
  • Ctrl+Enter opens one new line under your first caret's line, with no indent, and puts that caret at its start. Ctrl+Shift+Enter opens it above.

Copy two lines at one caret, press Ctrl+V at two carets, and each caret gets both lines whole. The Shift+F10 menu works at both as well. Its Copy takes both words, one per line, and its Paste puts the copied text at each caret. Down scrolls just enough to show your lowest caret.

Most of these come undone with one Ctrl+Z, carets and all, and your next letter lands at both. Ctrl+Z with nothing left to undo no longer lays a message over your code either. Script tabs goes through every key.

Docs keeps up while you type

The sidebar on a Docs page now follows your work without a click. Type a new function into a script, bring its system's Docs tab forward, and the sidebar lists it. Add a script and it shows up, even with its system folded in ShotScript Explorer. Rename one in Studio's Explorer and the old name goes. Turn a module into a class and the sidebar says class.

It keeps your place through all of that. The row you picked stays picked and the sidebar stays scrolled where it was, so Down carries on from there. When a change removes the member you picked, the page's own row takes over, never its neighbour.

A script's child scripts now show under it, after its own members, and Find on a script's page reaches members that only a child script has. Middle-click a row of the page you're on, and Docs brings that spot into view and flashes it.

Pages read better too. A fenced or indented sample in a doc comment draws as one code box, and parameter names take your Field names colour. When ShotScript Editor restarts, each sidebar comes back as you left it, shut or open at the same width.

Open beside finds room in more places. In a slim docked column the new page stacks below the one you were reading, at full width. A wide column of about 850 pixels splits into even halves. Floating Docs with no room on its right opens the new window on its left, and with no room on either side the window keeps its left half and hands over the right. The Docks page has the rest.

Tab through Properties

Tab in ShotScript Editor's Properties now moves you on. From Orientation's X field it opens Y, then Z, then Origin's field past the group. From Size X it opens Size Y. A value you click keeps its field open with the caret in it, ready to type.

Select two objects of one class and the title gives the class and the count, as Studio's does, with their name added when they share one. A mixed pair gives only the count. Click a blank Transparency on two objects that differ, and it opens with the value of the one you selected first.

Selections cross over faster as well. Click an object in Studio's 3D view and ShotScript Explorer shows it selected along with Studio's outline, with Properties about 0.13 seconds behind. A click in Studio's Explorer shows within 0.1 seconds.

ShotScript Explorer picked up a few more Studio habits. PageDown lands where Studio's does. Undo a cut and paste or a Delete, and the object comes back selected and still open, or folded if you cut it folded. Redo a group or ungroup with Ctrl+Y, and Studio selects the Model, or the objects it held, again.

On System Map, right-click a card and pick Select all children to pick every card below it, then Lay out selection to line them up, and Undo lay out if you liked them better before. In Styles, F2 or a double-click on a group's title renames it, built-in groups too, and a word chip you move to another group lands at its end, still selected.

System lines take dots

A system line written with slashes is now an error that stops the script compiling, and its message gives you the dotted path to write.

system ReplicatedStorage/Shop          -- an error now
system game.ReplicatedStorage.Shop     -- the path to write

A few other rules got friendlier. On the client, a function that waits only inside if not Players.LocalPlayer then no longer needs async, since client code always runs with LocalPlayer set. Server code still does. Using a script that declares both interfaces and a type, such as system type Rate, no longer errors.

Mistakes get clearer words too. A doc line written as <<Speed>> gets one error saying a doc sits in « » above what it documents, and its fix writes «Speed». A function Gear.Cog() written below module Gear = {} now says that a module's function goes in its body. Rules and Systems have the details.

Finer detail in Stroke Engine

Cameras in Stroke Engine have a new setting, Local Detail. It makes fine texture stand out from the smooth light around it, with no halo round bright edges.

Thin cylinders and balls seen from a distance no longer render fatter than they are. Screens, cables and strings of beads keep their real look, however far back the camera sits.