Questions tagged [code]

For Questions related to code - the default text and code editor shipped with elementary OS

Filter by
Sorted by
Tagged with
12
votes
3answers
2k views

How can I clear currently opened files in Scratch?

Whenever I try and open Scratch, it tries to load the files I previously had open. While I want to keep the behaviour, one of the files I opened was an SVG of several MBs. As a result, Scratch now ...
2
votes
1answer
181 views

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

How do I manually add indentations in scratch ? auto indentation does not seem to be working for me. I have tried Alt+Ctrl+F and right arrow key like on some other text editors. Is this a bug? any ...
1
vote
0answers
73 views

Problem with Cirillic. How can I change code table (cp1251 or koi-8)?

How can I change code table (cp1251 or koi-8)? I did not find any preference for it.
1
vote
1answer
221 views

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

How to change the color of texts in the scratch default text editor. It looks grey, and few other colors. I want to change it like dark black and red, blue like need to change few color schemes. Is ...
7
votes
4answers
7k views

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

I ran scratch-text-editor in terminal, but now I want to close the terminal without closing scratch. Is this possible, if so; how?
4
votes
2answers
532 views

Scratch is not responding when I try to edit a file

When I try to open Scratch, a window appears and I need to use the "force close" option. How may I solve this problem? I really like the Scratch UI, so I want to use this application. When try to ...
1
vote
1answer
38 views

How can I use scratch to search through tags (function definitions) in a project? [closed]

When working with sublime I can search through tags using f12 and in vim also there is Ctrl+]. How do I get a similar functionality in 'Scratch', the native editor of elementary OS?
13
votes
1answer
1k views

Can't open a new tab or new file on scratch

I can't open a new tab or new file in Scratch. Nothing happens when I click on the + icon and the following image occurs when I close all documents and select "New File". Running scratch from the ...
1
vote
1answer
135 views

Pastebin extension not installing in Scratch, shows error icon [closed]

When I click on the checkbox for Pastebin under Preferences->Extensions, result is the red error symbol as shown in the image: Log file: [_LOG_LEVEL_INFO 20:42:45.082713] Application.vala:155: ...
9
votes
1answer
1k views

How can I add a color scheme to Scratch?

Scratch comes with several color schemes by default. I can choose between them in Preferences > Interface. How can I add my own custom color schemes?
9
votes
1answer
657 views

How can I make Scratch execute scripts

I want to use the scratch text editor to execute python3 scripts. Is there a way to do this ?
5
votes
2answers
6k views

Why can I not use Scratch text editor to create files from the Terminal?

Let's say I want to create a .desktop file in /usr/share/applications and I do something like sudo -i gedit /usr/share/applications/cipricus.desktop This will open that file in gedit. If I try to ...
10
votes
3answers
1k views

How can I purge Scratch's configuration and / or re-install it?

Scratch hasn't worked for the last two months, I can't edit files:

1
2