Hot answers tagged

14 votes
Accepted

How can I clear currently opened files in Scratch?

You can view your currently open files with gsettings get org.pantheon.scratch.settings opened-files ['file:///home/lewis/image.svg'] You can clear your currently open files by setting the same key ...
Lewis Goddard's user avatar
  • 4,939
8 votes
Accepted

How can I launch a command from terminal and then close the terminal?

You can use: nohup nohup scratch-text-editor /path/to/file & Then close terminal with Ctrl+D If you want direct in single command: Use exit at the end of the command. like, nohup scratch-...
Ravan's user avatar
  • 7,867
6 votes

Dark theme on Elementary Code instead of "Solarized Dark"

So, I managed to hack Code a bit in order to set a different theme. I like to have a consistent theme when using various editors, so I tried to make them look as close as possible. At the same time, I ...
Vlad's user avatar
  • 2,205
5 votes

How can I clear currently opened files in Scratch?

This is only an alternative, Lewis answer is the accurate one. To clear currently opened files: Open scratch --> settings --> preferences --> Behavior --> Show Welcome Screen. If you are not able ...
Ravan's user avatar
  • 7,867
4 votes

How can I clear currently opened files in Scratch?

Just in case someone runs into this on Juno: gsettings set io.elementary.code.settings opened-files-view1 "[]"
Markus Rubey's user avatar
4 votes

How can I launch a command from terminal and then close the terminal?

In the future use this command: scratch-text-editor /file/to/open.txt for this: scratch-text-editor /file/to/open.txt & Note the & on the end there. That will start it as a separate ...
user3's user avatar
  • 1,059
4 votes

How to write plugin for scratch text editor from elementary os?

Scratch is developed in Vala, so you have at least two ways to create a plugin for a vala application: You can use Glib.Module class from gmodule-2.0 library to develop it. You can find more info at: ...
bitseater's user avatar
  • 2,278
4 votes
Accepted

How To Configure the Terminal in Code

The terminal plugin in Code follows the settings of the main Terminal application. To edit these settings: Close Code and open Terminal. Run sudo apt install dconf-editor, then close Terminal once ...
mr.k99's user avatar
  • 170
3 votes
Accepted

Open elementary apps from the command-line

Besides writing io.elementary.code or creating an alias there isn't any way to open a app from the command line.
Maccer's user avatar
  • 1,984
3 votes

How to toggle text wrapping in Code?

This is currently not possible. The feature was removed in this PR: https://github.com/elementary/code/pull/73 After feedback, I think it was agreed to bring it back (discussion here) I've just ...
David Hewitt's user avatar
  • 1,419
3 votes
Accepted

Prevent Scratch from making files with tilde

Although not a direct resolution to your problem, you should probably add tilde files to your .gitignore file anyways. This will prevent git from even noticing them, and should solve your problem. ...
Ben Foote's user avatar
  • 158
3 votes

Scratch is not responding when I try to edit a file

You can try clearing the currently opened files in Scratch since I had this problem because I opened a big file. To clear the currently opened files list run gsettings set org.pantheon.scratch....
Suici Doga's user avatar
  • 2,763
3 votes
Accepted

how can I add indents to code in scratch manually or automatically?

You can indent manually in Scratch by selecting several lines and pressing the Tab key, or pressing Shift + Tab. Automatic Indentation should occur, where every new line is inserted with the same ...
Lewis Goddard's user avatar
  • 4,939
3 votes
Accepted

Code - Spell check extension - where to add/remove dictionaries?

I'll try to help with this one: First, obviously, enable the extension in Code's Preferences. Now, right-clicking inside a document will let you choose from one of the pre-existing languages: If, ...
Vlad's user avatar
  • 2,205
2 votes
Accepted

How to change Text Color in Scratch Freya built in text editor?

You can set a different style scheme in org.pantheon.scratch.settings.style-scheme See this link for how to edit a setting in dconf https://elementaryos.stackexchange.com/a/176/37 Schemes are ...
Djax's user avatar
  • 2,879
2 votes

Scratch is not responding when I try to edit a file

If I type gsettings set org.pantheon.scratch.settings opened-files [] I get The key "opened-files" doesn't exist"(something like that. My System is in Spanish). I write what I did in case it helps ...
babel's user avatar
  • 41
2 votes

Scratch editor binary file load and session restoring problems

You could try moving those binary files to some other directory or just changing their names. Then open up scratch and it wont try to open those files. After that you can just move back those files or ...
Ibraheem Moosa's user avatar
2 votes
Accepted

Where does Scratch saves temporary files?

Scratch saves temporary files at ~/.local/share/scratch-text-editor/unsaved/
Daniel Foré's user avatar
  • 9,734
2 votes
Accepted

io.elementary.code application name

The name won't change. Further, we’re adopting RDNN across our apps. This is encouraged by FreeDesktop.Org projects like D-BUS as well as by GNOME, so we’re being consistent both with ourselves and ...
Ben's user avatar
  • 1,246
2 votes
Accepted

Can't launch Code via alias

Try removing the spaces between the equals sign. So change: alias code = 'io.elementary.code' To: alias code='io.elementary.code'
Aljelly's user avatar
  • 36
2 votes

Make Scratch stop asking to save a file before closing a file

This bug is already fixed in trunk (the current developement branch of Scratch). See for more details: https://code.launchpad.net/~vishalrao/scratch/fix-1547327/+merge/317063 The only thing to do ...
donadigo's user avatar
  • 161
2 votes

Open elementary apps from the command-line

I find that I don't want to open apps specifically from the command line, I just want to open a document and have whatever app is needed open it. xdg-open to the rescue! So xdg-open ~/mypdf.pdf &...
rolandw's user avatar
  • 81
2 votes

code text editor problem in elementary os juno

I think this is the solution for your problem Can't open a new tab or new file on scratch To fix this issue: Make sure you don't have any unsaved files in Scratch when run as root (...
Sebastian's user avatar
  • 1,972
2 votes

How to add support for additional coding languages?

I really don't know You should ask in their Github page https://github.com/elementary/code/issues Maybe ask for this new feature or some info on where to write the syntax definition... UPDATE (...
Sebastian's user avatar
  • 1,972
2 votes

What keyboard shortcuts are available in Code?

The ones I could find so far: Ctrl + Z / O / C / X / V / W / Q All do the same as in every other app Ctrl + / Comment the line Ctrl + I Go to line Ctrl + T Open new blank tab Ctrl + N Also open new ...
Dane Rossenrode's user avatar
2 votes

How to develop extensions for Code?

This question is definitely not as trivial as one would think, as there's virtually no documentation and you have to feel your way around the Code sources itself. NOTE: In this example I'll ...
vdd's user avatar
  • 21
2 votes

How can I print from within the Code app?

Hmm,Ctrl P doesn't work either... Amazingly enough, it seems, the printing functionality hasn't been implemented into Code. Well, if you need this feature, you can suggest to implement it via the ...
a-tokarev's user avatar
  • 917
2 votes
Accepted

Configure Code to forget opened files

Unfortunately I don't believe this is possible currently, Code calls restore_opened_documents in the activate function whenever there is no currently opened window without checking any gsettings key ...
Thalexander's user avatar
1 vote

code text editor problem in elementary os juno

I had the same issue several times both on Juno and Hera. And usually it worked fine after a fresh install. But I just came to see that sometimes even after a fresh install, it doesn't open. So here ...
Metin Demirel's user avatar
1 vote

Code - How to "search in project"

I don't think the feature exists in Code yet. However, a simple workaround is: Right-click the folder / project, select "Open in" > "Terminal" Type in the command: grep -Ril "text to search for" . ...
Dane Rossenrode's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible