Advertisement
codervitali

Tabs > Spaces

Oct 24th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Say you want to copy everything inside Function someFunction():
  2. ```js
  3. function someFunction() {
  4. const DIEP_CENTRAL = () => {
  5. for (let i = 0; i < bot.guild.length; i++) {
  6. if (bot.guilds[0] === '325817034036215818') {
  7. return bot.guilds[1];
  8. }
  9. }
  10. };
  11. }
  12. ```
  13. and paste it into Object x.y.z
  14. ```js
  15. let x = {
  16. y: {
  17. z: {
  18.  
  19. }
  20. }
  21. }
  22. ```
  23. This produces the following:
  24. ```js
  25. let x = {
  26. y: {
  27. z: {
  28. const DIEP_CENTRAL = () => {
  29. for (let i = 0; i < bot.guild.length; i++) {
  30. if (bot.guilds[0] === '325817034036215818') {
  31. return bot.guilds[1];
  32. }
  33. }
  34. };
  35. }
  36. }
  37. }```
  38. and you are forced to indent it manually. I tested this using 2 spaces as well: it didn't fix the problem.
  39.  
  40. Tested in Editey.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement