Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [code]

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

0
votes
0answers
38 views

Code on Juno not starting

I am running Juno, and have been for a couple of weeks. I have not been using Code that many times, so I cannot say at what point it stopped working. What happens is it briefly flashes onto the screen ...
0
votes
1answer
19 views

What keyboard shortcuts are available in Code?

What keyboard shortcuts are available for actions like manipulating files and directories / projects, manipulating code / text, showing / hiding features, etc.
0
votes
1answer
42 views

How to add support for additional coding languages?

When working on web dev projects, we work with many file formats, some of which aren't recognised by Code, such as .twig. Is there a way to add support for these? If not, is there a way to treat all ...
1
vote
1answer
80 views

code text editor problem in elementary os juno

I have another problem but with the code editor this time it does not let me create a new tab even when I right click and click new tab nothing happens I tried uninstalling it and installing it ...
1
vote
1answer
36 views

How to toggle text wrapping in Code?

I'm using Code to view and edit tab separated files, composed by long entries. When Code breaks the lines, it messes with my view of the file. How can I turn off text wrapping?
0
votes
4answers
130 views

Open elementary apps from the command-line

How can I open elementary apps from the command-line? Particularly Code and Files. I already found /usr/bin/io.elementary.files and /usr/bin/io.elementary.code, build they are not really convenient. ...
0
votes
1answer
80 views

Some bugs I found + 'code' related questions

I have downloaded and install elementary OS 5.0 Juno for a few days now and during that time, I think I have noticed some bugs, mostly just minor. For starter, every time you log in to the OS, the ...
1
vote
1answer
17 views

Code - How to “search in project”

In most editors it's possible to perform a search within the open folder/project. How can this be achieved with Code in Juno, if at all possible?
1
vote
1answer
136 views

io.elementary.code application name

First of all, I want to thank you guys for all your hard work. I really enjoy the consistency and fluidity of Elementary OS. The custom basic applications follow those patterns nicely and they are ...
0
votes
1answer
195 views

Can't launch Code via alias

I installed Code (the new Scratch) via the instructions here. I also created an alias in my .bashrc file to launch it for purposes of running as su: alias code = 'io.elementary.code' Unfortunately ...
2
votes
3answers
129 views

Prevent Scratch from making files with tilde

Everytime I edit something in Scratch, it creates a file with the same name ending with a tilde (~). How can I prevent this? This is really annoying while working with Git.
1
vote
0answers
61 views

Broken Default App Association

I recently accidentally deleted my sources list, but have successfully rebuilt. However, all default application like scratch, pantheon terminal, seemed to lose its default application association. ...
1
vote
1answer
64 views

Missing spell check in file extensions other than *.txt

The Scratch spell check extension does not work with some file extensions such as *.tex or *.php in elementary OS Loki. Is there a workaround for this?
0
votes
2answers
655 views

Unable to open scratch as root

When I open files as administrator and try to open a text file as root to edit it, scratch does not open. Wingpanel turns opaque as though scratch is maximized, but nothing displays. Eventually I get ...
0
votes
1answer
287 views

Text replacement in scratch-text-editor

How do you replace text on scratch? Usually, text replace prompt has two text fields, but what I get is a single text field. If I click "Replace" or "Replace all", found texts are replaced by null , ...
3
votes
0answers
103 views

Print from Scratch as it looks in the editor [closed]

How do I print (to a file) from Scratch editor as it looks (mono-scpaced and syntax highlighted)?
0
votes
2answers
2k views

How to install Scratch Text Editor in Ubuntu 16.04

I would like to know if it's possible to install Scratch text-editor in Ubuntu 16.04.
4
votes
1answer
319 views

How to modify scratch text editor bracket completion plugin?

I want to modify the brackets completion plugin but I can't find a way, is even possible to do so? or I have to write a new plugin?
1
vote
1answer
318 views

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

I've been using scratch for quite some time and its features as an IDE are very limited. So I was wondering how to develop/install new third party plugins for it but I was unable to find any ...
3
votes
2answers
62 views

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

How can I make Scratch stop asking to save before closing a file, while I make no changes? This happens when I did Preferences > Behavior > radio button off 'Save files when changed'. Thank-you!
2
votes
2answers
443 views

How do I find shortcuts to text editor Scratch?

Hi I would like to know how to change between the in-build terminal and text editor tabs without mouse in scratch.
0
votes
1answer
184 views

Scratch editor binary file load and session restoring problems

I'm on Freya. Scratch editor can't load (large?) binary files. It get stuck. Then if I force-close the app, when reopening it, it tries to restore the session and get stuck again. How can I 'recover' ...
1
vote
1answer
426 views

Where does Scratch saves temporary files?

I've set Scratch to show a welcome screen every time I open it so it doesn't show what I was doing previously. However, I just accidentally closed it and lost something I didn't save that I want to ...
2
votes
1answer
180 views

Can you port elementary's default apps to Ubuntu?

So is it possible to port apps like Scratch to a stock version of Ubuntu and if so where should I look to get started? As far as I can tell it should be possible since Scratch uses GTK which works ...
0
votes
1answer
44 views

Scratch editor: see cursor position

How can I see the actual cursor position? Usually, other editors use the status bar for this, but I can not find where is the option to enable it (even checked with the dconf editor). Is there a ...
2
votes
1answer
74 views

Scratch “tab” option [closed]

So by default Scratch comes with the option that changes your tabs from being tabs to just spaces. Now, this works fine whilst within Scratch, and i'm not arguing the fact that this silly option is ...
1
vote
2answers
658 views

How to change the Encoding? (Greek- ISO-8859-7)

Can I choose that encoding instead of the default? I can open a file with similar apps. If I open the same file with Scratch, it displays non-readable characters. I cannot find the appropriate setting ...
13
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
118 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
47 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
121 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 ...
0
votes
0answers
117 views

Scratch always ask to save when I disabled “auto-save” option

I went to Preferences > Behavior > Unchecked 'Save files when changed' Now when I open file in Scratch, it always ask me to save or discard changes. But there is nothing changed. Not every files I ...
6
votes
4answers
6k 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
466 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
34 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
120 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
732 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
473 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
5k 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: