Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

GMEdit

A high-end code editor for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

mouse wheel scroll lines adjustment

A topic by dragoncity created 75 days ago Views: 59 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hi. How do I increase the number of lines that one click of a middle mouse scroll wheel will move? Currently it scrolls 2 lines and it's killing my hand to scroll through the code.


Also how do I set it to autosave after every action like visual code?

Developer
Hi. How do I increase the number of lines that one click of a middle mouse scroll wheel will move? Currently it scrolls 2 lines and it's killing my hand to scroll through the code.

GMEdit (or, rather, Ace - the code editor component it uses) should use your system settings for scroll speed by default.
You can force a different multiplier by opening console (Ctrl+Shift+I), pasting the following (change number to liking), and pressing Enter:

aceEditor.setOption("scrollSpeed", 4)

This will save between sessions so you'll only need to do so once


Also how do I set it to autosave after every action like visual code?

That's a little more complicated.

You can make a tiny plugin that does

var file = $gmedit["gml.file.GmlFile"].current; if (file) file.save();

on repeat, after delay, or otherwise, but GMEdit's specifics have it that there are times where you don't want to save the file - e.g. if you are halfway through writing (#event <name>), the file cannot be saved, as there's nowhere to link that half-written event to. Similar goes for syntax extensions - as these can introduce changes to multiple files and/or project structure, the code is expected to be generally correct upon saving.