I
I
Ilaj Osmanov2017-05-21 22:35:04
JavaScript
Ilaj Osmanov, 2017-05-21 22:35:04

Why does sublime on mac insert an empty string?

There is such a problem: when I copy some code, then when I paste it, after a time, it inserts an empty line.
I have to roll back the changes, copy and then he inserts the necessary fragment for me when.
Problem on macOS.
Who faced?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Proskurin, 2018-08-14
@etmoandy


This is how app.js should work

import Module from './module.js'

export default { Module }

index.html
<script type="module" src="app.js"></script>
<script type="module">
  import App from './app.js'
  console.warn(App.Module);
</script>

those. you need to add the type="module" attribute to the script, and also add default to the app

N
Nikola24, 2017-05-21
@Nikola24

I had this when I did it through Ctrl + C, after Windows, then I started using Cmd + C and everything was copied))

A
Aristarkh Deryapa, 2017-05-21
@SelfiAS

As for performance on a poppy, I don’t know, but did you try to copy via RMB -> copy? I sometimes do not copy through CTRL + C, sometimes I do this. Probably a system bug...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question